Debian Codegraph @

upstream/debian-unstable/man6/backgammon.6

raw
1 .\" Automatically generated from backgammon/backgammon/backgammon.6.in. Do not edit.
2 .\" $NetBSD: backgammon.6,v 1.11 2003/08/07 09:36:55 agc Exp $
3 .\"
4 .\" Copyright (c) 1980, 1993
5 .\" The Regents of the University of California. All rights reserved.
6 .\"
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
9 .\" are met:
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
15 .\" 3. Neither the name of the University nor the names of its contributors
16 .\" may be used to endorse or promote products derived from this software
17 .\" without specific prior written permission.
18 .\"
19 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 .\" SUCH DAMAGE.
30 .\"
31 .\" @(#)backgammon.6 8.1 (Berkeley) 5/31/93
32 .\"
33 .Dd May 31, 1993
34 .Dt BACKGAMMON 6
35 .Os
36 .Sh NAME
37 .Nm backgammon
38 .Nd the game of backgammon
39 .br
40 .Nm teachgammon
41 .Nd learn to play backgammon
42 .Sh SYNOPSIS
43 .Nm
44 .Op Fl
45 .Op Fl nrwb
46 .Op Fl pr
47 .Op Fl pw
48 .Op Fl pb
49 .Op Fl t Ar term
50 .Op Fl s Ar file
51 .br
52 .Nm teachgammon
53 .Sh DESCRIPTION
54 This program lets you play backgammon against the computer
55 or against a "friend".
56 All commands are only one letter, so you don't need to type a carriage return,
57 except at the end of a move.
58 The program is mostly self-explanatory,
59 so that a question mark (?) will usually get some help.
60 If you answer `y' when the program asks if you want the rules,
61 you will get text explaining the rules of the game, some hints on strategy,
62 instructions on how to use the program,
63 and a tutorial consisting of a practice game against the computer.
64 A description of how to use the program can be
65 obtained by answering `y' when it asks if you want instructions.
66 .Pp
67 The possible arguments for backgammon
68 (most are unnecessary but some are very convenient)
69 consist of:
70 .Bl -tag -width indent
71 .It Fl n
72 don't ask for rules or instructions
73 .It Fl r
74 player is red (implies n)
75 .It Fl w
76 player is white (implies n)
77 .It Fl b
78 two players, red and white (implies n)
79 .It Fl pr
80 print the board before red's turn
81 .It Fl pw
82 print the board before white's turn
83 .It Fl pb
84 print the board before both player's turn
85 .It Fl t Ar term
86 terminal is type
87 .Ar term ,
88 uses
89 .Pa /usr/share/misc/termcap
90 .It Fl s Ar file
91 recover previously saved game from
92 .Ar file
93 .El
94 .Pp
95 .\"
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.
102 .Pp
103 If
104 .Ar term
105 has capabilities for direct cursor movement (see
106 .Xr termcap 5 )
107 .Nm
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
113 the entry in the
114 .Pa /usr/share/misc/termcap
115 data base.)
116 .Sh QUICK REFERENCE
117 When the program prompts by typing only your color,
118 type a space or carriage return to roll, or
119 .Bl -tag -width indent
120 .It Ic d
121 to double
122 .It Ic p
123 to print the board
124 .It Ic q
125 to quit
126 .It Ic s
127 to save the game for later
128 .El
129 .Pp
130 When the program prompts with 'Move:', type
131 .Bl -tag -width indent
132 .It Ic p
133 to print the board
134 .It Ic q
135 to quit
136 .It Ic s
137 to save the game
138 .El
139 .Pp
140 or a
141 .Em move ,
142 which is a sequence of
143 .Bl -tag -width indent
144 .It Ic s-f
145 move from
146 .Ic s
147 to
148 .Ic f
149 .It Ic s/r
150 move one man on
151 .Ic s
152 the roll
153 .Ic r
154 separated by commas or spaces and ending with a newline.
155 Available abbreviations are
156 .Bl -tag -width indent
157 .It Ic s-f1-f2
158 means
159 .Ic s-f1,f1-f2
160 .It Ic s/r1r2
161 means
162 .Ic s/r1,s/r2
163 .El
164 .El
165 .Pp
166 Use
167 .Ic b
168 for bar and
169 .Ic h
170 for home,
171 or 0 or 25 as appropriate.
172 .Sh AUTHOR
173 .An Alan Char
174 .Sh FILES
175 .Bl -tag -width /usr/share/misc/termcap -compact
176 .It Pa /usr/games/teachgammon
177 rules and tutorial
178 .It Pa /usr/share/misc/termcap
179 terminal capabilities
180 .El
181 .Sh BUGS
182 The program's strategy needs much work.