Skip to content

A strategic two-player board game where players compete to control a grid by coloring blocks and capturing adjacent spaces. Features a minimax AI opponent with sophisticated decision-making logic.

License

Notifications You must be signed in to change notification settings

Soroushcro/ClashofColors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clash of Colors

Welcome to Clash of Colors, a vibrant and dynamic game designed to challenge your calculative mind.

Features

  • Interactive Gameplay: Engage in a fast-paced game where you must quickly identify and select the correct colors.
  • User-Friendly Interface: Enjoy a clean, intuitive design that makes it easy to jump right into the action.
  • Scoring System: Track your performance with a scoring system that keeps you motivated to improve your skills.

Rules

The goal of Clash of Colors is to maximize your score by strategically locking in high-value blocks. Here’s how you can play:

  1. Scoring Points:

    • When you color a block, you also color all its adjacent blocks.
    • Each block you color adds that blocks' score+1 point to your score.
  2. Strategic Moves:

    • Plan your moves carefully to prevent the AI from coloring the final block and securing all the high-value blocks.
    • Ensure that your colored block is adjacent to an already colored block. You cannot place your block anywhere on the board without this condition. Attempting to do so will only result in a definite loss.

Remember, every move counts! Use strategy and foresight to outmaneuver the AI and achieve the highest score possible. human player always goes first because that makes the game harder but feel free to change it in the code and try it the other way, to do so you would only have to change currentPlayer in script.js from blue to red.

To get started with Clash of Colors, follow these simple steps:

  1. Clone this repository:

    git clone https://github.com/Soroushcro/ClashofColors.git
  2. Navigate to the project directory:

    cd ClashofColors
  3. Install the required dependencies:

    npm install

Usage

Once you have installed the dependencies, you can start the game by running:

npm start

Open your browser and go to http://localhost:3000 to begin playing Clash of Colors.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contact

For any questions or feedback, please reach out via GitHub Issues.

About

A strategic two-player board game where players compete to control a grid by coloring blocks and capturing adjacent spaces. Features a minimax AI opponent with sophisticated decision-making logic.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published