An open API service indexing awesome lists of open source software.

https://github.com/soroushcro/clashofcolors

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.
https://github.com/soroushcro/clashofcolors

ai-opponent board-game javascript-game minimax-algorithm strategy-game two-player-game

Last synced: about 1 month ago
JSON representation

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.

Awesome Lists containing this project

README

        

# 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:
```bash
git clone https://github.com/Soroushcro/ClashofColors.git
```

2. Navigate to the project directory:
```bash
cd ClashofColors
```

3. Install the required dependencies:
```bash
npm install
```

## Usage

Once you have installed the dependencies, you can start the game by running:
```bash
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](LICENSE) file for more details.

## Contact

For any questions or feedback, please reach out via [GitHub Issues](https://github.com/Soroushcro/ClashofColors/issues).