🔲 Dots and Boxes
You (Y)AI (AI)
Tap a gap between two dots to draw a line · Arrow keys move the cursor, T flips direction, Space draws
How to play Dots and Boxes
Dots and Boxes is the classic pencil-and-paper duel, reborn on a glowing 5×5 dot grid. You play violet against the computer's orange. Take turns drawing a single line between two neighboring dots — horizontal or vertical. The moment your line closes the fourth side of a 1×1 square, that box is yours: it fills with your color, gets stamped with your initial, and you earn a bonus move. When every line on the grid is drawn, the player holding the most boxes wins. With 16 boxes up for grabs, nine is the magic number — claim nine and the game is yours no matter what happens next.
Controls
- Mouse & touch: tap or click any empty gap between two neighboring dots to draw your line. Hovering highlights the line you're about to place.
- Keyboard: arrow keys move the glowing cursor dot, T switches between horizontal and vertical lines, Space or Enter draws the highlighted line.
- Overlays: press Space or Enter to start the game or launch a rematch.
Tips & strategy
- Count to three: a box with three drawn sides is a gift — always scan the grid for one before drawing elsewhere, because the AI will grab any you leave behind.
- Don't be generous: avoid drawing the third side of a box unless you must — it hands your rival a free claim on their next turn.
- The endgame is everything: most boxes fall in a chain reaction near the end. Try to be the player who starts that chain, not the one who feeds it.
- Sacrifice smartly: when no safe line exists, give away the smallest chain you can — losing one box beats losing five.
Scoring
Each claimed box scores one point, tracked live in the score bar above the grid. All 16 boxes are claimed by the final line, so draws are possible but rare. Your best result against the AI is saved on this device.