Dots and boxes online: close boxes and score points
In dots and boxes two players take turns joining dots with lines; whoever draws the fourth side of a box keeps it and moves again. Here you can play dots and boxes against the computer or with two players on one device.
Source: Wikipedia: Dots and boxes – Regeln, Strategie (Ketten, Doppelzug). Updated: .
How it is calculated
Dots and boxes: the rules
- The board is a grid of dots. Players take turns joining two neighbouring dots with a line.
- Whoever draws the fourth side of a box closes it, scores a point and must move again. One line can even close two boxes at once.
- The game ends when all lines are drawn. The player with more boxes wins.
How to use the game
Pick the board (3×3, 4×4 or 5×5 boxes) and the opponent: three computer levels or “Two players” on the same device. Tap or click a line. Your lines and boxes are blue (○), your opponent’s orange (×). “Undo move” takes back your last move together with the replies. On a keyboard, pick the line with the arrow keys and place it with Enter.
Strategy
At the start one simple rule applies: do not draw the third side of a box, because that hands it to your opponent. When no safe lines are left, the boxes form chains in which every line gives the whole chain away. Beginners take everything and then open the smallest chain. Experienced players use the double-cross: they take all boxes of a chain except the last two, hand those over and force the opponent to open the next chain. Keeping control usually wins the long chains.
The computer
Easy mostly plays at random. Medium takes every box, never gives away a third side and only then opens the smallest chain. Hard plays like Medium but calculates every sequence of moves exactly in the endgame (from about 16 open lines), including the double-cross. That makes Hard especially strong at the end. When you beat the computer you can share the result as a challenge. More board games: tic-tac-toe, connect four, checkers and battleship.
Frequently asked questions
How do you play dots and boxes?
Players take turns joining two neighbouring dots. Whoever draws the fourth side of a box keeps it and moves again. At the end the player with the most boxes wins.
Who starts, and how big is the board?
You can choose: you or the computer starts. The boards are 3×3, 4×4 and 5×5 boxes; 2×2 is good for learning, and 5×5 is considered a board for experts.
What is a double-cross?
On a long chain you take all boxes except the last two. You hand those over with one line, the opponent has to take them and then open the next chain. That way you keep control.
Can two people play on one device?
Yes. Choose “Two players” as the opponent and both take turns on the same screen.
How strong is the computer?
On “Hard” it calculates every possibility in the endgame and uses the double-cross. Early on it plays like an attentive player who never gives away a third side.
Sources and legal basis
- Wikipedia: Dots and boxes – Regeln, Strategie (Ketten, Doppelzug)
- MDN: SVG (skalierbare Vektorgrafik)
- MDN: Crypto.getRandomValues()
As of: · Editorial policy
Related tools
- Play tic tac toe onlineTic tac toe online: play the computer (easy, medium, unbeatable), a friend on one device or by link. 3×3, 4×4 and 5×5 boards with score – free, no sign-up.
- Play Four in a Row OnlinePlay Four in a Row free in your browser: against the computer on three levels or two players on one device, with a saved score. No sign-up, no app.
- Play checkers against the computerFree online checkers vs the computer on three levels, or two players on one device. American/English rules plus international 10×10 and five more variants.
- Sea Battle: sink the ships against the computerPlay Sea Battle online for free: place your fleet, fire at a 10×10 grid and sink the computer’s ships at three levels. No sign-up, works on phones.
- Nine Men’s Morris against the computerPlay nine men’s morris online against the computer on three levels, or with two players on one device: place, move, fly and form mills. Free, no sign-up.
- Kalah against the computerPlay Kalah online: sow seeds, chain extra turns and capture your opponent’s pits – against the computer on three levels or two players on one device. Free.
- Play Solitaire OnlineFree Klondike solitaire in your browser: draw 1 or 3, unlimited undo, hints and a winnable daily deal. Share your time – the link deals the same cards.
- Baby name wheelBaby name wheel: spin for a random girl, boy or gender-neutral name, or type in your own shortlist and let the wheel decide. Free, fair, nothing to install.
- Classroom Seating Chart GeneratorClassroom seating chart generator: paste the class list, set rows and desks, shuffle. With front-row and keep-apart rules, seat swaps, projector and print.