diff options
author | jtc <jtc@NetBSD.org> | 1993-08-05 04:16:58 +0000 |
---|---|---|
committer | jtc <jtc@NetBSD.org> | 1993-08-05 04:16:58 +0000 |
commit | 7dd48ead302ac5b358ad7be25d2e9a147a387a14 (patch) | |
tree | 548fa35afcbb56a108d877304cc14e9e3d5c75e0 /backgammon/backgammon | |
parent | 4477f90396f02cfb90536d1ed29030d40960f215 (diff) | |
download | bsdgames-darwin-7dd48ead302ac5b358ad7be25d2e9a147a387a14.tar.gz bsdgames-darwin-7dd48ead302ac5b358ad7be25d2e9a147a387a14.tar.zst bsdgames-darwin-7dd48ead302ac5b358ad7be25d2e9a147a387a14.zip |
Update to -mandoc macros.
Diffstat (limited to 'backgammon/backgammon')
-rw-r--r-- | backgammon/backgammon/backgammon.6 | 200 |
1 files changed, 88 insertions, 112 deletions
diff --git a/backgammon/backgammon/backgammon.6 b/backgammon/backgammon/backgammon.6 index 29014bd9..4b4b3641 100644 --- a/backgammon/backgammon/backgammon.6 +++ b/backgammon/backgammon/backgammon.6 @@ -30,20 +30,24 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)backgammon.6 6.6 (Berkeley) 8/3/91 -.\" $Id: backgammon.6,v 1.2 1993/08/01 07:47:35 mycroft Exp $ +.\" $Id: backgammon.6,v 1.3 1993/08/05 04:16:58 jtc Exp $ .\" -.TH BACKGAMMON 6 "August 3, 1991" -.UC 5 -.SH NAME -backgammon \- the game of backgammon -.SH SYNOPSIS -.B backgammon -[ - ] [ n r w b pr pw pb t\c -.I term -s\c -.I file -] -.SH DESCRIPTION +.Dd August 3, 1991 +.Dt BACKGAMMON 6 +.Os +.Sh NAME +.Nm backgammon +.Nd the game of backgammon +.Sh SYNOPSIS +.Nm backgammon +.Op Fl +.Op Fl nrwb +.Op Fl pr +.Op Fl pw +.Op Fl pb +.Op Fl t Ar term +.Op Fl s Ar file +.Sh DESCRIPTION This program lets you play backgammon against the computer or against a "friend". All commands only are one letter, @@ -58,149 +62,121 @@ instruction on how to use the program, and a tutorial consisting of a practice game against the computer. A description of how to use the program can be obtained by answering `y' when it asks if you want instructions. -.PP +.Pp The possible arguments for backgammon (most are unnecessary but some are very convenient) consist of: -.ne 11 -.PP -.na -.TP 8 -.B n +.Bl -tag -width indent +.It Fl n don't ask for rules or instructions -.TP 8 -.B r +.It Fl r player is red (implies n) -.TP 8 -.B w +.It Fl w player is white (implies n) -.TP 8 -.B b +.It Fl b two players, red and white (implies n) -.TP 8 -.B pr +.It Fl pr print the board before red's turn -.TP 8 -.B pw +.It Fl pw print the board before white's turn -.TP 8 -.B pb +.It Fl pb print the board before both player's turn -.TP 8 -.B t\fIterm +.It Fl t Ar term terminal is type -.IR term , +.Ar term , uses /etc/termcap -.TP 8 -.B s\fIfile +.It Fl s Ar file recover previously saved game from -.IR file . +.Ar file . (This can also be done by executing the saved file, i.e., typing its name in as a command) -.ad -.PP -Arguments may be optionally preceded by a `-'. -Several arguments may be concatenated together, -but not after `s' or `t' arguments, -since they can be followed by an arbitrary string. +.El +.Pp +.\" +.\" Arguments may be optionally preceded by a `-'. +.\" Several arguments may be concatenated together, +.\" but not after `s' or `t' arguments, +.\" since they can be followed by an arbitrary string. Any unrecognized arguments are ignored. An argument of a lone `-' gets a description of possible arguments. -.PP +.Pp If -.IR term +.Ar term has capabilities for direct cursor movement (see -.IR termcap (5)) -.IR backgammon +.Xr termcap 5 ) +.Nm backgammon ``fixes'' the board after each move, so the board does not need to be reprinted, unless the screen suffers some horrendous malady. Also, any `p' option will be ignored. (The `t' option is not necessary unless the terminal type does not match -the entry in the /etc/termcap data base.) -.SH QUICK\ REFERENCE +the entry in the +.Pa /etc/termcap +data base.) +.Sh QUICK REFERENCE When the program prompts by typing only your color, type a space or carriage return to roll, or -.ne 5 -.PP -.na -.TP 8 -.B d +.Bl -tag -width indent +.It Ic d to double -.TP 8 -.B p +.It Ic p to print the board -.TP 8 -.B q +.It Ic q to quit -.TP 8 -.B s +.It Ic s to save the game for later -.PP -.i0 -.ad +.El +.Pp When the program prompts with 'Move:', type -.ne 4 -.PP -.na -.TP 8 -.B p +.Bl -tag -width indent +.It Ic p to print the board -.TP 8 -.B q +.It Ic q to quit -.TP 8 -.B s +.It Ic s to save the game -.ad -.i0 -.PP +.El +.Pp or a -.IR move , +.Em move , which is a sequence of -.ne 4 -.PP -.na -.TP 8 -.B s-f +.Bl -tag -width indent +.It Ic s-f move from -.BR s +.Ic s to -.BR f -.TP 8 -.B s/r +.Ic f +.It Ic s/r move one man on -.BR s +.Ic s the roll -.BR r -.ad -.PP +.Ic r separated by commas or spaces and ending with a newline. Available abbreviations are -.ne 4 -.PP -.na -.TP 10 -.B s-f1-f2 +.Bl -tag -width indent +.It Ic s-f1-f2 means -.BR s-f1,f1-f2 -.TP 10 -.B s/r1r2 +.Ic s-f1,f1-f2 +.It Ic s/r1r2 means -.BR s/r1,s/r2 -.ad -.PP -Use `b' for bar and `h' for home, +.Ic s/r1,s/r2 +.El +.El +.Pp +Use +.Ic b +for bar and +.Ic h +for home, or 0 or 25 as appropriate. -.SH AUTHOR +.Sh AUTHOR Alan Char -.SH FILES -.TP 25 -/usr/games/teachgammon -\- rules and tutorial -.br -.TP 25 -/etc/termcap -\- terminal capabilities -.SH BUGS -.PP +.Sh FILES +.Bl -tag -width /usr/games/teachgammon -compact +.It Pa /usr/games/teachgammon +rules and tutorial +.It Pa /etc/termcap +terminal capabilities +.El +.Sh BUGS The program's strategy needs much work. |