OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / bsd-games / original / man6 / backgammon.6
1 .\" Automatically generated from backgammon/backgammon/backgammon.6.in.  Do not edit.
2 .\"     $NetBSD: backgammon.6,v 1.8 2001/04/02 22:47:29 wiz 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. All advertising materials mentioning features or use of this software
16 .\"    must display the following acknowledgement:
17 .\"     This product includes software developed by the University of
18 .\"     California, Berkeley and its contributors.
19 .\" 4. Neither the name of the University nor the names of its contributors
20 .\"    may be used to endorse or promote products derived from this software
21 .\"    without specific prior written permission.
22 .\"
23 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 .\" SUCH DAMAGE.
34 .\"
35 .\"     @(#)backgammon.6        8.1 (Berkeley) 5/31/93
36 .\"
37 .Dd May 31, 1993
38 .Dt BACKGAMMON 6
39 .Os
40 .Sh NAME
41 .Nm backgammon
42 .Nd the game of backgammon
43 .br
44 .Nm teachgammon
45 .Nd learn to play backgammon
46 .Sh SYNOPSIS
47 .Nm
48 .Op Fl
49 .Op Fl nrwb
50 .Op Fl pr
51 .Op Fl pw
52 .Op Fl pb
53 .Op Fl t Ar term
54 .Op Fl s Ar file
55 .br
56 .Nm teachgammon
57 .Sh DESCRIPTION
58 This program lets you play backgammon against the computer
59 or against a "friend".
60 All commands only are one letter,
61 so you don't need to type a carriage return,
62 except at the end of a move.
63 The program is mostly self documenting,
64 so that a question mark (?) will usually get some help.
65 If you answer `y' when the program asks if you want the rules,
66 you will get text explaining the rules of the game,
67 some hints on strategy,
68 instruction on how to use the program,
69 and a tutorial consisting of a practice game against the computer.
70 A description of how to use the program can be
71 obtained by answering `y' when it asks if you want instructions.
72 .Pp
73 The possible arguments for backgammon
74 (most are unnecessary but some are very convenient)
75 consist of:
76 .Bl -tag -width indent
77 .It Fl n
78 don't ask for rules or instructions
79 .It Fl r
80 player is red (implies n)
81 .It Fl w
82 player is white (implies n)
83 .It Fl b
84 two players, red and white (implies n)
85 .It Fl pr
86 print the board before red's turn
87 .It Fl pw
88 print the board before white's turn
89 .It Fl pb
90 print the board before both player's turn
91 .It Fl t Ar term
92 terminal is type
93 .Ar term ,
94 uses
95 .Pa /usr/share/misc/termcap
96 .It Fl s Ar file
97 recover previously saved game from
98 .Ar file .
99 .El
100 .Pp
101 .\"
102 .\" Arguments may be optionally preceded by a `-'.
103 .\" Several arguments may be concatenated together,
104 .\" but not after `s' or `t' arguments,
105 .\" since they can be followed by an arbitrary string.
106 Any unrecognized arguments are ignored.
107 An argument of a lone `-' gets a description of possible arguments.
108 .Pp
109 If
110 .Ar term
111 has capabilities for direct cursor movement (see
112 .Xr termcap 5 )
113 .Nm
114 ``fixes'' the board after each move,
115 so the board does not need to be reprinted,
116 unless the screen suffers some horrendous malady.
117 Also, any `p' option will be ignored.
118 (The `t' option is not necessary unless the terminal type does not match
119 the entry in the
120 .Pa /usr/share/misc/termcap
121 data base.)
122 .Sh QUICK REFERENCE
123 When the program prompts by typing only your color,
124 type a space or carriage return to roll, or
125 .Bl -tag -width indent
126 .It Ic d
127 to double
128 .It Ic p
129 to print the board
130 .It Ic q
131 to quit
132 .It Ic s
133 to save the game for later
134 .El
135 .Pp
136 When the program prompts with 'Move:', type
137 .Bl -tag -width indent
138 .It Ic p
139 to print the board
140 .It Ic q
141 to quit
142 .It Ic s
143 to save the game
144 .El
145 .Pp
146 or a
147 .Em move ,
148 which is a sequence of
149 .Bl -tag -width indent
150 .It Ic s-f
151 move from
152 .Ic s
153 to
154 .Ic f
155 .It Ic s/r
156 move one man on
157 .Ic s
158 the roll
159 .Ic r
160 separated by commas or spaces and ending with a newline.
161 Available abbreviations are
162 .Bl -tag -width indent
163 .It Ic s-f1-f2
164 means
165 .Ic s-f1,f1-f2
166 .It Ic s/r1r2
167 means
168 .Ic s/r1,s/r2
169 .El
170 .El
171 .Pp
172 Use
173 .Ic b
174 for bar and
175 .Ic h
176 for home,
177 or 0 or 25 as appropriate.
178 .Sh AUTHOR
179 Alan Char
180 .Sh FILES
181 .Bl -tag -width /usr/share/misc/termcap -compact
182 .It Pa /usr/games/teachgammon
183 rules and tutorial
184 .It Pa /usr/share/misc/termcap
185 terminal capabilities
186 .El
187 .Sh BUGS
188 The program's strategy needs much work.