Minimax Algorithm: Dots-n-Boxes Demo

Legos LightLegos Light
1 min read
๐Ÿ˜ˆ
Can you beat the level 3 AI ?

Rules:

  1. Setup: The game starts with a grid of dots, usually in a rectangular or square arrangement.

  2. Turns: Players take turns drawing lines between adjacent dots, either vertically or horizontally (not diagonally).

  3. Completing Boxes: If a player's line completes the fourth side of a box, they "capture" that box, usually by marking it with their initial or color.

  4. Bonus Turn: If a player completes a box on their turn, they get to take another turn.

  5. Game End: The game continues until no more lines can be drawn without completing boxes.

  6. Scoring: The player with the most captured boxes at the end of the game wins.

0
Subscribe to my newsletter

Read articles from Legos Light directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Legos Light
Legos Light