Dots and boxes is a pencil-and-paper game for two players (sometimes more). It was first published in the 19th century by French mathematician Édouard Lucas, who called it .[1] It has gone by many other names, including dots and dashes, game of dots,[2] dot to dot grid,[3] boxes,[4] and pigs in a pen.[5]
The game starts with an empty grid of dots. Usually two players take turns adding a single horizontal or vertical line between two unjoined adjacent dots. A player who completes the fourth side of a 1×1 box earns one point and takes another turn. A point is typically recorded by placing a mark that identifies the player in the box, such as an initial. The game ends when no more lines can be placed. The winner is the player with the most points.[6] [7] The board may be of any size grid. When short on time, or to learn the game, a 2×2 board (3×3 dots) is suitable.[8] A 5×5 board, on the other hand, is good for experts.[9]
For most novice players, the game begins with a phase of more-or-less randomly connecting dots, where the only strategy is to avoid adding the third side to any box. This continues until all the remaining (potential) boxes are joined together into chains – groups of one or more adjacent boxes in which any move gives all the boxes in the chain to the opponent. At this point, players typically take all available boxes, then open the smallest available chain to their opponent. For example, a novice player faced with a situation like position 1 in the diagram on the right, in which some boxes can be captured, may take all the boxes in the chain, resulting in position 2. But with their last move, they have to open the next, larger chain, and the novice loses the game.[6] [10]
A more experienced player faced with position 1 will instead play the double-cross strategy, taking all but 2 of the boxes in the chain and leaving position 3. The opponent will take these two boxes and then be forced to open the next chain. By achieving position 3, player A wins. The same double-cross strategy applies no matter how many long chains there are: a player using this strategy will take all but two boxes in each chain and take all the boxes in the last chain. If the chains are long enough, then this player will win.
The next level of strategic complexity, between experts who would both use the double-cross strategy (if they were allowed to), is a battle for control: an expert player tries to force their opponent to open the first long chain, because the player who first opens a long chain usually loses.[6] Against a player who does not understand the concept of a sacrifice, the expert simply has to make the correct number of sacrifices to encourage the opponent to hand them the first chain long enough to ensure a win. If the other player also sacrifices, the expert has to additionally manipulate the number of available sacrifices through earlier play.
In combinatorial game theory, Dots and Boxes is an impartial game and many positions can be analyzed using Sprague–Grundy theory. However, Dots and Boxes lacks the normal play convention of most impartial games (where the last player to move wins), which complicates the analysis considerably.[6]
Dots and Boxes need not be played on a rectangular gridit can be played on a triangular grid or a hexagonal grid.[6]
Dots and boxes has a dual graph form called "Strings-and-Coins". This game is played on a network of coins (vertices) joined by strings (edges). Players take turns cutting a string. When a cut leaves a coin with no strings, the player "pockets" the coin and takes another turn. The winner is the player who pockets the most coins. Strings-and-Coins can be played on an arbitrary graph.[6]
In analyses of Dots and Boxes, a game that starts with outer lines already drawn is called a Swedish board while the standard version that starts fully blank is called an American board. An intermediate version with only the left and bottom sides starting with drawn lines is called an Icelandic board.[11]
A related game is Dots, played by adding coloured dots to a blank grid, and joining them with straight or diagonal line in an attempt to surround an opponent's dots.