Dots and Boxes: Connect the Dots, Claim the Boxes

Set up a new game

    New game

    Opponent
    Number of players
    2 players
    Players
    Who goes first
    Board size

    Dots and Boxes is the classic pencil-and-paper dot game for 2 to 4 players: take turns joining two neighbouring dots with a line, and whoever draws the fourth side of a box claims it and goes again. Play it here for free on one phone, tablet or computer with friends or family, or against the computer on three levels. It works offline once the page has loaded, there is nothing to install, and a game on the default board takes about five minutes. You may know it as the dot game, boxes or squares.

    Friends on their own phones? Play Dots and Boxes online with friends: start a room, send the link, and draw your lines from your own device.

    Dots and Boxes, play with friends: a grid of dots half drawn in blue and red lines, with two boxes claimed by Blue and one by Red

    How to play Dots and Boxes

    • The board starts as a square grid of dots. Pick 3×3, 4×4, 5×5 or 6×6 boxes in the setup; 4×4 is the default.
    • On your turn, draw one line between two dots that sit side by side, either across or down. Diagonal lines are not allowed.
    • When your line completes the fourth side of a box, the box is yours: it fills with your color and your initial.
    • After closing a box you must draw another line. One line can close two boxes at once, which still earns one extra line.
    • A line that closes no box ends your turn, and play passes to the next player.
    • The game ends when every box is claimed. The player with the most boxes wins; equal top scores share the win, and a full tie is a draw.

    For every rule in detail, board sizes, scoring with three or four players and popular house rules, read how to play Dots and Boxes.

    Prefer to watch? See the 6-minute video on the Dots and Boxes rules page.

    Play Dots and Boxes on one device

    This version is made for people sitting together around one screen. Type everyone’s name, choose who goes first and start. The bar above the board always says whose turn it is, and each player’s box count sits in their badge.

    • Big tap areas: you don’t have to hit the thin gap exactly. Each line has a tap area that reaches halfway to the boxes beside it, so a tap anywhere near a line draws that line.
    • Tap twice on big boards: on a small touch screen, 5×5 and 6×6 boards ask for a second tap (or the Draw button) to confirm a line. You can switch this in the More menu.
    • Keyboard play: move between the lines with the arrow keys and press Enter or Space to draw.
    • Clear board: the newest line carries a small dot, and every claimed box shows its owner’s initial as well as their color.
    • Undo, rematch and score: Undo takes back the last line, even in the middle of an extra turn. Rematch starts a new game with the next player first, and the session score is kept.
    • Pass screen (optional): switch it on to show a “Pass to Maya” screen between turns. The game saves after every line, so a closed tab doesn’t lose it.

    Play against the computer

    Choose vs Computer for a two-player game, or give any seat to the computer in a game for three or four. Then pick a level:

    • Easy draws lines more or less at random, but never misses a box that is ready to close. A friendly level for children and first games.
    • Medium takes every box it can, avoids drawing a box’s third side while it has a choice, and gives away as little as possible when it has to.
    • Hard also plans the endgame. It counts chains and loops, hands over the cheapest one in the safest way, and uses the double-cross to keep control of the last long chains. With three or four players it plays like Medium.

    Quick tips

    1. Don’t draw the third side of a box. Your opponent closes it and moves again. Early on, almost every line is safe; later, safe lines run out.
    2. Count the chains. Near the end the open boxes form chains. When you must give one away, give away the shortest.
    3. Learn the double-cross. Taking a long chain, you can leave its last two boxes to your opponent so that they have to open the next chain for you.

    Our Dots and Boxes strategy guide explains chains, the double-cross and the long chain rule with diagrams. If you like games played on a grid of paper, try Tic-Tac-Toe and Gomoku, play a round of Hangman, or browse our list of pen and paper games.

    Learn Dots and Boxes

    Dots and Boxes FAQ

    Something else? Ask us.

    How do you play Dots and Boxes?

    Players take turns drawing one line between two dots that sit next to each other, across or down. Whoever draws the fourth side of a box claims it and must draw another line straight away. When every box is claimed, the player with the most boxes wins.

    Do you get another turn when you complete a box?

    Yes, and you have to take it. Every time your line closes a box (or two boxes at once), you draw again. That is why the game is a lot more than drawing lines at random: one careless third side can hand your opponent a whole row of boxes.

    Can I play Dots and Boxes 2 player on one phone?

    Yes. Both players share one phone, tablet or computer and take turns on the same board. Up to four people can play, and any seat can be the computer. Once the page has loaded it also works without a connection, and the game is saved after every line.

    What board size should I pick?

    The default 4×4 boxes is a good first game and takes a few minutes. 3×3 is quick and handy for teaching children. 5×5 and 6×6 give longer chains and a deeper endgame; on a small phone screen they use tap twice to draw, so you never draw the wrong line.

    Is Dots and Boxes free here?

    Yes. You play it in your browser for free, with no sign-up and nothing to download. Pick names or a computer level, choose a board size and start drawing. Rematches keep a running score for your session.

    Who invented Dots and Boxes?

    The French mathematician Édouard Lucas described it in 1889, and it has been a favourite pencil-and-paper game in classrooms ever since. Mathematicians still study it, because the endgame hides a surprising amount of strategy.

    All articles
    All games

    Collections with Dots and Boxes

    Dots and Boxes is in six collections: 4 player games, family games, board games for kids, games vs computer, offline games and 2 player games.

    Add to your Home Screen

    Install Pass and Play Games so it opens like an app and works offline.

    1. Tap the Share button in Safari’s toolbar.
    2. Scroll down and tap Add to Home Screen .
    3. Tap Add. The games now open from your Home Screen.

    Settings

    Look

    ThemeSystem follows your device.
    LanguageEnglish

    Playing

    Accessibility

    MotionReduce turns off sliding; fades stay.

    Your data

    Saved in this browser only.

    App

    Send feedback

    Tell us what works, what doesn’t, or what to add. It comes straight to us.

    What’s it about?

    The page, the game and your type of device come with it, so you don’t need to say which game.