1 .\" $NetBSD: dab.6,v 1.3 2005/09/15 02:10:37 wiz Exp $
3 .\" Copyright (c) 2003 Thomas Klausner.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 .Nd Dots and Boxes game
35 .Op Fl p Ao Ar c|h Ac Ns Ao Ar c|h Ac
36 .Op Ar xdim Oo Ar ydim Oc
39 is a game where each player tries to complete the most
41 A turn consists of putting one border of a box; the player
42 setting the fourth and final border of a box gets the
43 point for the box and has another turn.
45 The keys used are the vi keys:
54 To switch between even and odd rows, use one of the following
57 .Pq diagonal right up ,
59 .Pq diagonal left up ,
61 .Pq diagonal left down ,
63 .Pq diagonal right down ;
69 redraw the screen, and
74 .Bl -tag -width XXnXngamesXXXXX
76 Don't use the alternate character set.
80 .Pq Especially useful in Fl p Ar cc No mode.
81 .It Fl p Ao Ar c|h Ac Ns Ao Ar c|h Ac
82 Select which of the two players is a human
84 The first argument is the first player;
86 stands for computer and
90 Wait for a character press between games.
96 define the size of the board in the x and y
100 .%A Elwyn R. Berlekamp
101 .%T The Dots and Boxes Game: Sophisticated Child's Play
104 .%O http://www.akpeters.com/book.asp?bID=111
108 .Aq christos@NetBSD.org