Dots and Boxes game - belpyro/GamePortal GitHub Wiki

Description

Dots and boxes is a classic, 2+ player combinatorial strategy game with a simple goal: whoever "owns" the most boxes at the end of the game wins. You and your opponent take turns drawing one at a time horizontal or vertical lines to connect the boxes.

Rules

The game starts with a rectangular grid containing m×n dots (at least 4×4).

The two players take turns to join two nearby dots with a horizontal or vertical line (no diagonal lines allowed).
If a player completes the fourth side of a box he initials that box (by putting any symbol in it or simply painting it over) and has to take the extra turn (you cannot skip it).

The game continues until no more moves can be made. When all the boxes have been completed the winner is the player who has initialed the most boxes.

Example: 3 players (Blue -> Green -> Red), 5×5 grid

DnB gameplay

⚠️ **GitHub.com Fallback** ⚠️