🔲

Dots and Boxes

Claim more boxes than your opponent on the 4×4 dot grid.

Medium
🔵 Blue: 0🔴 Red (CPU): 0

You are Blue. Click any line between two dots.

About Dots and Boxes

Dots and Boxes is the pen-and-paper game generations of schoolchildren have played in the margins of exercise books. The board is a 5×5 lattice of dots forming 16 empty boxes. Players take turns drawing a single line between two neighbouring dots — and whoever draws the fourth side of a box claims it and, crucially, must draw again. That bonus move turns a quiet drawing exercise into a game of terrifying chain reactions, where one careless line can hand your opponent half the board in a single turn.

The real game begins before any box is close to finished. Skilled players spend the opening quietly drawing lines that complete nothing, because adding the third side to any box is an engraved invitation for the opponent to claim it. Eventually the board fills to a point where every move opens a chain, and the endgame becomes arithmetic: who is forced to open the biggest chain, and how many boxes they can keep when they do.

You can play against the computer — which takes free boxes, avoids feeding you boxes while safe moves exist, and when forced to open a chain picks the least damaging option — or switch to 2 Players and share the board hotseat-style with a friend. Boxes are marked in the claimer's colour, Blue for player one and Red for player two (or the computer), and the running totals sit at the top so the state of the match is never in doubt.

How to Play Dots and Boxes

1

Choose your mode first: Vs Computer (you are Blue, the computer plays Red) or 2 Players for a hotseat game on the same screen.

2

On your turn, click a faint line slot between two neighbouring dots to draw it. Lines can be horizontal or vertical and each turn draws exactly one line — unless it claims a box.

3

If your line completes the fourth side of any box, that box is filled in your colour, your score rises, and you immediately draw another line. One move can complete two boxes at once where they share the line.

4

In Vs Computer mode the computer draws after you, claiming any boxes it can and playing safe lines while they exist.

5

Keep alternating until all 16 boxes are claimed. Chains matter: a single claim can cascade through connected boxes in one long turn.

6

The player with the most boxes when the grid is full wins the match.

Controls

Click a line slotDraw that line between the two dots
Vs Computer / 2 Players buttonsChoose the game mode (starts a fresh grid)
Restart buttonClear the grid and start again in the current mode
Tap (touch)Lines can be drawn with taps on mobile

Tips & Tricks

  • 💡Never draw the third side of a box while safe moves remain elsewhere. A box with three sides is a gift your opponent will unwrap on their very next turn — plus the bonus draw it carries.
  • 💡Count the chains before you open one. When every move gives something away, open the smallest chain on the board, not the largest, even if it feels counterintuitive to give away anything at all.
  • 💡Use the control strategy in big chains: take all but the last two or four boxes, then deliberately draw a line inside one of the remaining boxes to hand them over. Your opponent is forced to open the rest of the board for you — the classic winning endgame.
  • 💡In the opening, play lines in open space and keep mental note of which regions are connected. The player who tracks chain sizes from mid-game onward almost always decides the result.

Dots and Boxes — Frequently Asked Questions

How big is the board?+

The dot lattice is 5×5, which makes a 4×4 grid of boxes — 16 boxes in total, so a majority of 9 boxes guarantees the win.

Why do I sometimes get several turns in a row?+

Claiming a box always grants an immediate extra draw. If that extra line completes another box, you draw again, which is how chains are swept in a single turn.

How does the computer play?+

It claims any box it can complete, prefers lines that do not hand you a claimable box, and when it is forced to give a chain away it chooses the line that opens up the fewest nearly-complete boxes. It is a solid, honest opponent — beatable once you learn chain control.

Can two people play on one device?+

Yes. Choose 2 Players and pass the device (or share the mouse) back and forth — Blue and Red alternate, and the game announces whose turn it is.

More Games Like This

Browse all 2D games →

All games on Vimzify are free to play in your browser — no downloads, no sign-up. Game page: https://vimzify.com/games/dots-and-boxes