# Dots and Boxes

> The classic pencil-and-paper game: draw lines between dots, close boxes and take another turn.

Play Dots and Boxes free online vs an easy, medium or hard computer, or with a friend on one device. Close the most boxes to win. No download.

- Play: https://mogame.app/en/games/dots-and-boxes/
- Genre: Board, Strategy
- Price: free, no ads, no sign-up, no download
- Platforms: desktop, mobile (web browser)
- Controls: mouse, keyboard, touch
- Online leaderboard: yes
- Released: 2026-11-01
- Last updated: 2026-11-01

## How to play

The board is a 6×6 grid of dots with 25 empty boxes between them. Players take turns drawing one line between two neighbouring dots, across or down. If your line closes the fourth side of a box, the box is yours, it fills with your colour and you must draw another line straight away. A single line can close two boxes at once. When every line has been drawn, the player who owns more boxes wins — with 25 boxes there is always a winner. Against the computer you play first in orange; the number of boxes you win by is your score for that difficulty.

## Controls

Tap or click near a dashed gap between two dots to draw a line there. Keyboard: arrow keys move the cursor from line to line, Enter or Space draws the selected line. Use New game to switch between the computer and two players.

## Tips

- Never draw the third side of a box unless you have to: your opponent simply closes it.
- Early on, any line that leaves every box with two sides or fewer is safe. The game is decided when the safe lines run out.
- When the safe lines are gone, give your opponent the shortest chain first.
- Taking every box in a chain isn't always best. Leaving the last two for your opponent forces them to open the next chain for you.
- A chain of two is best given away by drawing the line between its two boxes, so your opponent can't use that trick.

## Frequently asked questions

### What is Dots and Boxes?

Dots and Boxes is a classic two-player strategy game, first described by the French mathematician Édouard Lucas in 1889 and played on squared paper ever since. It goes by many names: Käsekästchen in German, pipopipette in French, timbiriche in Spanish, jogo dos pontinhos in Portuguese and 點格棋 in Chinese.

### What happens when I close a box?

The box becomes yours and you must draw another line. If that line closes another box, you go again, so a long chain of boxes can be taken in a single turn.

### How strong is the computer?

Easy takes any box it can and otherwise plays a random safe line. Medium also hands over as few boxes as possible when it has to give some away. Hard plays for control of the long chains: it searches the end of the opening and plays the endgame perfectly, including giving away the last two boxes of a chain when that wins more later.

### How is my score calculated?

When you beat the computer, your score is how many more boxes you have than it does, for example 15–10 scores 5. Each difficulty has its own leaderboard. Two-player games aren't ranked.

### Can two people play on one device?

Yes. Choose 2 players in the menu and pass the phone, tablet or computer back and forth. Player 1 is orange and player 2 is blue.

### Is my game saved?

Yes. Your current game and your best margin for each difficulty are saved in your browser, so you can close the page and continue later.
