1DAB(6) BSD Games Manual DAB(6)
2
4 dab — Dots and Boxes game
5
7 dab [-aw] [-n ngames] [-p ⟨c|h⟩⟨c|h⟩] [xdim [ydim]]
8
10 dab is a game where each player tries to complete the most boxes. A turn
11 consists of putting one border of a box; the player setting the fourth
12 and final border of a box gets the point for the box and has another
13 turn.
14
15 The keys used are the vi keys: k for up, j for down, h for left, and l
16 for right. To switch between even and odd rows, use one of the following
17 keys: u (diagonal right up), y (diagonal left up), b (diagonal left
18 down), n (diagonal right down); ⟨space⟩ sets a new border, CTRL-L and
19 CTRL-R redraw the screen, and q quits the game.
20
21 Support options are:
22
23 -a Don't use the alternate character set.
24
25 -n ngames ngames games will be played. (Especially useful in -p
26 cc mode.)
27
28 -p ⟨c|h⟩⟨c|h⟩ Select which of the two players is a human or a com‐
29 puter. The first argument is the first player; c stands
30 for computer and h for human.
31
32 -w Wait for a character press between games.
33
34 xdim and ydim define the size of the board in the x and y dimensions.
35
37 Christos Zoulas ⟨christos@NetBSD.org⟩
38
40 Elwyn R. Berlekamp, The Dots and Boxes Game: Sophisticated Child's Play,
41 A K Peters, 2000, http://www.akpeters.com/book.asp?bID=111.
42
43BSD December 24, 2003 BSD