chain-reaction-game
A strategy game for 2 players. Here your opponent is an AI agent. AI opponent is build using Minimax algorithm with alpha-pruning. The objective of Chain Reaction is to take control of the board by eliminating your opponents' orbs.
rules
here are the rules of the Chain Reaction game presented:
- Objective: Eliminate your opponents' orbs by creating chain reactions.
- Setup: Distribute orbs, place them on the board.
- Gameplay:
- Add orbs to empty cells.
- Trigger chain reactions using active orbs.
- When a cell reaches its specific critical mass (usually 1, 2, or 3 orbs), it explodes, causing a chain reaction.
- Critical mass:
- For corner cell is 1
- For edge except corners is 2
- For other cell is 3
- Winning: Eliminate all opponents' orbs.
Prerequisites
This project required a C compiler (gcc prefered) and libraries like SDL2, SDL2_ttf installed on device. Make sure you have them. Clone this repo and open the folder in VS code, then simply run.