1 .\" Copyright (c) 1980, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\" must display the following acknowledgement:
14 .\" This product includes software developed by the University of
15 .\" California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .\" @(#)backgammon.6 8.1 (Berkeley) 5/31/93
33 .\" $FreeBSD: src/games/backgammon/backgammon/backgammon.6,v 1.7.2.1 2001/07/22 11:01:21 dd Exp $
34 .\" $DragonFly: src/games/backgammon/backgammon/backgammon.6,v 1.4 2007/10/20 17:56:46 swildner Exp $
41 .Nd the game of backgammon
51 This program lets you play backgammon against the computer
52 or against a "friend".
53 All commands are only one letter, so you don't need to type a carriage return,
54 except at the end of a move.
55 The program is mostly self-explanatory,
56 so that a question mark (?) will usually get some help.
57 If you answer `y' when the program asks if you want the rules,
58 you will get text explaining the rules of the game, some hints on strategy,
59 instructions on how to use the program,
60 and a tutorial consisting of a practice game against the computer.
61 A description of how to use the program can be
62 obtained by answering `y' when it asks if you want instructions.
64 The possible arguments for
66 (most are unnecessary but some are very convenient)
68 .Bl -tag -width ".Fl pr"
70 get a description of possible arguments and exit
72 don't ask for rules or instructions
74 player is red (implies
77 player is white (implies
80 two players, red and white (implies
83 print the board before red's turn
85 print the board before white's turn
87 print the board before both player's turn
92 .Pa /usr/share/misc/termcap
94 recover previously saved game from
100 has capabilities for direct cursor movement (see
103 ``fixes'' the board after each move,
104 so the board does not need to be reprinted,
105 unless the screen suffers some horrendous malady.
106 Also, any `p' option will be ignored.
107 (The `t' option is not necessary unless the terminal type does not match
109 .Pa /usr/share/misc/termcap
112 When the program prompts by typing only your color,
113 type a space or carriage return to roll, or
114 .Bl -tag -width ".Ic s-f"
122 to save the game for later
125 When the program prompts with 'Move:', type
126 .Bl -tag -width ".Ic s-f"
137 which is a sequence of
138 .Bl -tag -width ".Ic s-f"
149 separated by commas or spaces and ending with a newline.
150 Available abbreviations are
151 .Bl -tag -width ".Ic s-f1-f2"
166 or 0 or 25 as appropriate.
168 .Bl -tag -width ".Pa /usr/share/misc/termcap" -compact
169 .It Pa /usr/games/teachgammon
171 .It Pa /usr/share/misc/termcap
172 terminal capabilities
177 The program's strategy needs much work.