A strategic two-player math game where you roll dice, solve equations, and capture boxes on a grid.
- Roll the Dice: Start your turn by clicking the "ROLL DICE" button.
- Solve the Equation: Depending on the game mode (Addition or Multiplication), calculate the result of the dice.
- Find the Number: Locate the matching number on the 10x10 grid.
- Claim a Line: Click on any available line surrounding the target number.
- Capture a Box: If your line is the 4th line to surround a box, you capture it and score a point!
- Win: The game ends when all boxes are filled. The player with the most boxes wins.
- Two Game Modes: Choose between Addition (+) and Multiplication (×) to adjust the difficulty.
- CPU Opponent: Toggle the CPU checkmark to play against a smart computer opponent that finds valid moves and strategies.
- Visual Feedback:
- Dice roll animations.
- Green flash indicator for CPU moves.
- Confetti celebration when you score!
- Fast Forward: Use the "Fast Forward" button to simulate 20 random moves for quick testing.
- Remix for the web framework.
- Tailwind CSS for styling.
- Vite for the build tool.
- Canvas Confetti for the celebration effects.
- Install dependencies:
npm install
- Run the development server:
npm run dev
- Open
http://localhost:5173(or the port shown in your terminal).
