xref: /netbsd-src/games/dab/dab.6 (revision ed0ae4959795cd1a91f0e9910b570ac74c37f6ac)
1*ed0ae495Srillig.\"	$NetBSD: dab.6,v 1.8 2021/12/05 09:46:05 rillig Exp $
2e30af347Schristos.\"
3e30af347Schristos.\" Copyright (c) 2003 Thomas Klausner.
4e30af347Schristos.\"
5e30af347Schristos.\" Redistribution and use in source and binary forms, with or without
6e30af347Schristos.\" modification, are permitted provided that the following conditions
7e30af347Schristos.\" are met:
8e30af347Schristos.\" 1. Redistributions of source code must retain the above copyright
9e30af347Schristos.\"    notice, this list of conditions and the following disclaimer.
10e30af347Schristos.\" 2. Redistributions in binary form must reproduce the above copyright
11e30af347Schristos.\"    notice, this list of conditions and the following disclaimer in the
12e30af347Schristos.\"    documentation and/or other materials provided with the distribution.
13e30af347Schristos.\"
14e30af347Schristos.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15e30af347Schristos.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16e30af347Schristos.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17e30af347Schristos.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18e30af347Schristos.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19e30af347Schristos.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20e30af347Schristos.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21e30af347Schristos.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22e30af347Schristos.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23e30af347Schristos.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24e30af347Schristos.\"
25*ed0ae495Srillig.Dd December 5, 2021
26e30af347Schristos.Dt DAB 6
27e30af347Schristos.Os
28e30af347Schristos.Sh NAME
29e30af347Schristos.Nm dab
30e30af347Schristos.Nd Dots and Boxes game
31e30af347Schristos.Sh SYNOPSIS
32e30af347Schristos.Nm
33e30af347Schristos.Op Fl aw
34e30af347Schristos.Op Fl n Ar ngames
35e30af347Schristos.Op Fl p Ao Ar c|h Ac Ns Ao Ar c|h Ac
36e30af347Schristos.Op Ar xdim Oo Ar ydim Oc
37e30af347Schristos.Sh DESCRIPTION
38e30af347Schristos.Nm
39e30af347Schristosis a game where each player tries to complete the most
40e30af347Schristosboxes.
41e30af347SchristosA turn consists of putting one border of a box; the player
42e30af347Schristossetting the fourth and final border of a box gets the
43e30af347Schristospoint for the box and has another turn.
44e30af347Schristos.Pp
45e30af347SchristosThe keys used are the vi keys:
46e30af347Schristos.Ic k
47e30af347Schristosfor up,
48e30af347Schristos.Ic j
49e30af347Schristosfor down,
50e30af347Schristos.Ic h
51e30af347Schristosfor left, and
52e30af347Schristos.Ic l
53e30af347Schristosfor right.
54e30af347SchristosTo switch between even and odd rows, use one of the following
55e30af347Schristoskeys:
56e30af347Schristos.Ic u
57e30af347Schristos.Pq diagonal right up ,
58e30af347Schristos.Ic y
59e30af347Schristos.Pq diagonal left up ,
60e30af347Schristos.Ic b
61e30af347Schristos.Pq diagonal left down ,
62e30af347Schristos.Ic n
63e30af347Schristos.Pq diagonal right down ;
64e30af347Schristos.Aq Ic space
65e30af347Schristossets a new border,
66e30af347Schristos.Ic CTRL-L
67e30af347Schristosand
68e30af347Schristos.Ic CTRL-R
69e30af347Schristosredraw the screen, and
70e30af347Schristos.Ic q
71e30af347Schristosquits the game.
72e30af347Schristos.Pp
738e005c71SdhollandSupported options are:
74e30af347Schristos.Bl -tag -width XXnXngamesXXXXX
75e30af347Schristos.It Fl a
76e30af347SchristosDon't use the alternate character set.
77e30af347Schristos.It Fl n Ar ngames
78e30af347Schristos.Ar ngames
79e30af347Schristosgames will be played.
80e30af347Schristos.Pq Especially useful in Fl p Ar cc No mode.
81e30af347Schristos.It Fl p Ao Ar c|h Ac Ns Ao Ar c|h Ac
82e30af347SchristosSelect which of the two players is a human
83e30af347Schristosor a computer.
84e30af347SchristosThe first argument is the first player;
85e30af347Schristos.Ic c
86e30af347Schristosstands for computer and
87e30af347Schristos.Ic h
88e30af347Schristosfor human.
89e30af347Schristos.It Fl w
90e30af347SchristosWait for a character press between games.
91e30af347Schristos.El
92e30af347Schristos.Pp
93e30af347Schristos.Ar xdim
94e30af347Schristosand
95e30af347Schristos.Ar ydim
96e30af347Schristosdefine the size of the board in the x and y
97e30af347Schristosdimensions.
98b64afd21SchristosIf the dimensions specified are
99b64afd21Schristos.Dv 0
100b64afd21Schristosthen the maximum dimensions for the size of the screen are
101b64afd21Schristosused.
102e30af347Schristos.Sh SEE ALSO
103e30af347Schristos.Rs
104e30af347Schristos.%A Elwyn R. Berlekamp
105e30af347Schristos.%T The Dots and Boxes Game: Sophisticated Child's Play
106e30af347Schristos.%D 2000
107e30af347Schristos.%I A K Peters
108*ed0ae495Srillig.%U urn:ISBN:9781568811291
109e30af347Schristos.Re
110d9f5a9dfSwiz.Sh AUTHORS
111d9f5a9dfSwiz.An Christos Zoulas
112d9f5a9dfSwiz.Aq christos@NetBSD.org
113