1 .\" $NetBSD: backgammon.6,v 1.13 2012/04/21 12:27:27 roy Exp $
3 .\" Copyright (c) 1980, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" @(#)backgammon.6 8.1 (Berkeley) 5/31/93
37 .Nd the game of backgammon
48 This program lets you play
51 or against a "friend".
52 All commands are only one letter, so you don't need to type a carriage return,
53 except at the end of a move.
54 The program is mostly self-explanatory,
55 so that a question mark (?) will usually get some help.
56 If you answer `y' when the program asks if you want the rules,
57 you will get text explaining the rules of the game, some hints on strategy,
58 instructions on how to use the program,
59 and a tutorial consisting of a practice game against the computer.
60 A description of how to use the program can be
61 obtained by answering `y' when it asks if you want instructions.
63 The possible arguments for
65 (most are unnecessary but some are very convenient)
67 .Bl -tag -width ".Fl pr"
69 don't ask for rules or instructions
71 player is red (implies
74 player is white (implies
77 two players, red and white (implies
80 print the board before red's turn
82 print the board before white's turn
84 print the board before both players' turn
89 .Pa /usr/share/misc/terminfo
91 recover previously saved game from
96 .\" Arguments may be optionally preceded by a `-'.
97 .\" Several arguments may be concatenated together,
98 .\" but not after `s' or `t' arguments,
99 .\" since they can be followed by an arbitrary string.
100 Any unrecognized arguments are ignored.
101 An argument of a lone `-' gets a description of possible arguments.
105 has capabilities for direct cursor movement (see
108 ``fixes'' the board after each move,
109 so the board does not need to be reprinted,
110 unless the screen suffers some horrendous malady.
111 Also, any `p' option will be ignored.
112 (The `t' option is not necessary unless the terminal type does not match
114 .Pa /usr/share/misc/terminfo
117 When the program prompts by typing only your color,
118 type a space or carriage return to roll, or
119 .Bl -tag -width ".Ic s-f"
127 to save the game for later
130 When the program prompts with 'Move:', type
131 .Bl -tag -width ".Ic s-f"
142 which is a sequence of
143 .Bl -tag -width ".Ic s-f"
154 separated by commas or spaces and ending with a newline.
155 Available abbreviations are
156 .Bl -tag -width ".Ic s-f1-f2"
171 or 0 or 25 as appropriate.
173 .Bl -tag -width ".Pa /usr/share/misc/terminfo" -compact
174 .It Pa /usr/games/teachgammon
176 .It Pa /usr/share/misc/terminfo
177 terminal capabilities
182 The program's strategy needs much work.