Annotation of 42BSD/games/backgammon/backgammon.src, revision 1.1.1.1

1.1       root        1: .\"    backgammon.src  4.1     82/05/11
                      2: .th BACKGAMMON PUBLIC \n(mo/\n(dy/\n(yr
                      3: .sh NAME
                      4: backgammon - the game of backgammon
                      5: .sh SYNOPSIS
                      6: .bd backgammon
                      7: [ - ] [ n r w b pr pw pb t\c
                      8: .it term
                      9: s\c
                     10: .it file
                     11: ]
                     12: .sh DESCRIPTION
                     13: This program lets you play backgammon against the computer
                     14: or against a "friend".
                     15: All commands only are one letter,
                     16: so you don't need to type a carriage return,
                     17: except at the end of a move.
                     18: The program is mostly self documenting,
                     19: so that a question mark (?) will usually get some help.
                     20: If you answer `y' when the program asks if you want the rules,
                     21: you will get text explaining the rules of the game,
                     22: some hints on strategy,
                     23: instruction on how to use the program,
                     24: and a tutorial consisting of a practice game against the computer.
                     25: A description of how to use the program can be
                     26: obtained by answering `y' when it asks if you want instructions.
                     27: .s3
                     28: The possible arguments for backgammon
                     29: (most are unnecesary but some are very convenient)
                     30: consist of:
                     31: .ne 11
                     32: .s3
                     33: .na
                     34: .lp 16 8
                     35: .bn n
                     36: don't ask for rules or instructions
                     37: .lp 16 8
                     38: .bn r
                     39: player is red (implies n)
                     40: .lp 16 8
                     41: .bn w
                     42: player is white (implies n)
                     43: .lp 16 8
                     44: .bn b
                     45: two players, red and white (implies n)
                     46: .lp 16 8
                     47: .bn pr
                     48: print the board before red's turn
                     49: .lp 16 8
                     50: .bn pw
                     51: print the board before white's turn
                     52: .lp 16 8
                     53: .bn pb
                     54: print the board before both player's turn
                     55: .lp 16 8
                     56: .bn t\fiterm
                     57: terminal is type
                     58: .it term,
                     59: uses /etc/termcap
                     60: .lp 16 8
                     61: .bn s\fifile
                     62: recover previously saved game from
                     63: .it file.
                     64: (This can also be done by executing the saved file,
                     65: i.e., typing its name in as a command)
                     66: .s3
                     67: .ad
                     68: .i0
                     69: Arguments may be optionally preceded by a `-'.
                     70: Several arguments may be concatenated together,
                     71: but not after `s' or `t' arguments,
                     72: since they can be followed by an arbitrary string.
                     73: Any unrecognized arguments are ignored.
                     74: An argument of a lone `-' gets a description of possible arguments.
                     75: .s3
                     76: If
                     77: .it term
                     78: has capabilities for direct cursor movement (see ttycap(VII)),
                     79: .it backgammon
                     80: "fixes" the board after each move,
                     81: so the board does not need to be reprinted,
                     82: unless the screen suffers some horrendous malady.
                     83: Also, any `p' option will be ignored.
                     84: (The `t' option is not necessary unless the terminal type does not match
                     85: the entry in the /etc/htmp data base.)
                     86: .sh QUICK\ REFERENCE
                     87: When the program prompts by typing only your color,
                     88: type a space or carriage return to roll, or
                     89: .ne 5
                     90: .s3
                     91: .na
                     92: .lp 16 8
                     93: .bn d
                     94: to double
                     95: .lp 16 8
                     96: .bn p
                     97: to print the board
                     98: .lp 16 8
                     99: .bn q
                    100: to quit
                    101: .lp 16 8
                    102: .bn s
                    103: to save the game for later
                    104: .s3
                    105: .i0
                    106: .ad
                    107: When the program prompts with 'Move:', type
                    108: .ne 4
                    109: .s3
                    110: .na
                    111: .lp 16 8
                    112: .bn p
                    113: to print the board
                    114: .lp 16 8
                    115: .bn q
                    116: to quit
                    117: .lp 16 8
                    118: .bn s
                    119: to save the game
                    120: .ad
                    121: .i0
                    122: .s3
                    123: or a
                    124: .it move,
                    125: which is a sequence of
                    126: .ne 4
                    127: .s3
                    128: .na
                    129: .lp 16 8
                    130: .bn s-f
                    131: move from
                    132: .bd s
                    133: to
                    134: .bd f
                    135: .lp 16 8
                    136: .bn s/r
                    137: move one man on
                    138: .bd s
                    139: the roll
                    140: .bd r
                    141: .ad
                    142: .i0
                    143: .s3
                    144: separated by commas or spaces and ending with a newline.
                    145: Available abbreviations are
                    146: .ne 4
                    147: .s3
                    148: .na
                    149: .lp 18 10
                    150: .bn s-f1-f2
                    151: means
                    152: .bd s-f1,f1-f2
                    153: .lp 18 10
                    154: .bn s/r1r2
                    155: means
                    156: .bd s/r1,s/r2
                    157: .ad
                    158: .i0
                    159: .s3
                    160: Use `b' for bar and `h' for home,
                    161: or 0 or 25 as appropriate.
                    162: .sh AUTHOR
                    163: Alan Char
                    164: .sh FILES
                    165: .lp 30 25
                    166: .bn /mnt/alan/:toys/teachgammon
                    167: - rules and tutorial
                    168: .br
                    169: .lp 30 25
                    170: .bn /etc/htmp
                    171: - data base on user's environment
                    172: .br
                    173: .lp 30 25
                    174: .bn /etc/termcap
                    175: - terminal capabilities
                    176: .i0
                    177: .sh BUGS
                    178: The program's strategy needs much work.
                    179: .s3
                    180: /mnt/alan/:toys/teachgammon was removed to preserve space in /usr/public
                    181: .sh COMMENTS
                    182: The program is still under development,
                    183: so a description of any bugs found should be mailed to
                    184: .bd alan.
                    185: .s3
                    186: Because of the dynamic state of the program
                    187: (constantly changing),
                    188: the file
                    189: .it /mnt/alan/:toys/gammon.news
                    190: lists current modifications to the program.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.