|
|
1.1 ! root 1: .\" Copyright (c) 1980 Regents of the University of California. ! 2: .\" All rights reserved. ! 3: .\" ! 4: .\" Redistribution and use in source and binary forms are permitted ! 5: .\" provided that the above copyright notice and this paragraph are ! 6: .\" duplicated in all such forms and that any documentation, ! 7: .\" advertising materials, and other materials related to such ! 8: .\" distribution and use acknowledge that the software was developed ! 9: .\" by the University of California, Berkeley. The name of the ! 10: .\" University may not be used to endorse or promote products derived ! 11: .\" from this software without specific prior written permission. ! 12: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ! 13: .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED ! 14: .\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. ! 15: .\" ! 16: .\" @(#)backgammon.6 6.4 (Berkeley) 7/9/88 ! 17: .\" ! 18: .TH BACKGAMMON 6 "July 9, 1988" ! 19: .UC 5 ! 20: .SH NAME ! 21: backgammon \- the game of backgammon ! 22: .SH SYNOPSIS ! 23: .B backgammon ! 24: [ - ] [ n r w b pr pw pb t\c ! 25: .I term ! 26: s\c ! 27: .I file ! 28: ] ! 29: .SH DESCRIPTION ! 30: This program lets you play backgammon against the computer ! 31: or against a "friend". ! 32: All commands only are one letter, ! 33: so you don't need to type a carriage return, ! 34: except at the end of a move. ! 35: The program is mostly self documenting, ! 36: so that a question mark (?) will usually get some help. ! 37: If you answer `y' when the program asks if you want the rules, ! 38: you will get text explaining the rules of the game, ! 39: some hints on strategy, ! 40: instruction on how to use the program, ! 41: and a tutorial consisting of a practice game against the computer. ! 42: A description of how to use the program can be ! 43: obtained by answering `y' when it asks if you want instructions. ! 44: .PP ! 45: The possible arguments for backgammon ! 46: (most are unnecessary but some are very convenient) ! 47: consist of: ! 48: .ne 11 ! 49: .PP ! 50: .na ! 51: .TP 8 ! 52: .B n ! 53: don't ask for rules or instructions ! 54: .TP 8 ! 55: .B r ! 56: player is red (implies n) ! 57: .TP 8 ! 58: .B w ! 59: player is white (implies n) ! 60: .TP 8 ! 61: .B b ! 62: two players, red and white (implies n) ! 63: .TP 8 ! 64: .B pr ! 65: print the board before red's turn ! 66: .TP 8 ! 67: .B pw ! 68: print the board before white's turn ! 69: .TP 8 ! 70: .B pb ! 71: print the board before both player's turn ! 72: .TP 8 ! 73: .B t\fiterm ! 74: terminal is type ! 75: .IR term , ! 76: uses /etc/termcap ! 77: .TP 8 ! 78: .B s\fifile ! 79: recover previously saved game from ! 80: .IR file . ! 81: (This can also be done by executing the saved file, ! 82: i.e., typing its name in as a command) ! 83: .ad ! 84: .PP ! 85: Arguments may be optionally preceded by a `-'. ! 86: Several arguments may be concatenated together, ! 87: but not after `s' or `t' arguments, ! 88: since they can be followed by an arbitrary string. ! 89: Any unrecognized arguments are ignored. ! 90: An argument of a lone `-' gets a description of possible arguments. ! 91: .PP ! 92: If ! 93: .IR term ! 94: has capabilities for direct cursor movement (see ! 95: .IR termcap (5)) ! 96: .IR backgammon ! 97: ``fixes'' the board after each move, ! 98: so the board does not need to be reprinted, ! 99: unless the screen suffers some horrendous malady. ! 100: Also, any `p' option will be ignored. ! 101: (The `t' option is not necessary unless the terminal type does not match ! 102: the entry in the /etc/termcap data base.) ! 103: .SH QUICK\ REFERENCE ! 104: When the program prompts by typing only your color, ! 105: type a space or carriage return to roll, or ! 106: .ne 5 ! 107: .PP ! 108: .na ! 109: .TP 8 ! 110: .B d ! 111: to double ! 112: .TP 8 ! 113: .B p ! 114: to print the board ! 115: .TP 8 ! 116: .B q ! 117: to quit ! 118: .TP 8 ! 119: .B s ! 120: to save the game for later ! 121: .PP ! 122: .i0 ! 123: .ad ! 124: When the program prompts with 'Move:', type ! 125: .ne 4 ! 126: .PP ! 127: .na ! 128: .TP 8 ! 129: .B p ! 130: to print the board ! 131: .TP 8 ! 132: .B q ! 133: to quit ! 134: .TP 8 ! 135: .B s ! 136: to save the game ! 137: .ad ! 138: .i0 ! 139: .PP ! 140: or a ! 141: .IR move , ! 142: which is a sequence of ! 143: .ne 4 ! 144: .PP ! 145: .na ! 146: .TP 8 ! 147: .B s-f ! 148: move from ! 149: .BR s ! 150: to ! 151: .BR f ! 152: .TP 8 ! 153: .B s/r ! 154: move one man on ! 155: .BR s ! 156: the roll ! 157: .BR r ! 158: .ad ! 159: .PP ! 160: separated by commas or spaces and ending with a newline. ! 161: Available abbreviations are ! 162: .ne 4 ! 163: .PP ! 164: .na ! 165: .TP 10 ! 166: .B s-f1-f2 ! 167: means ! 168: .BR s-f1,f1-f2 ! 169: .TP 10 ! 170: .B s/r1r2 ! 171: means ! 172: .BR s/r1,s/r2 ! 173: .ad ! 174: .PP ! 175: Use `b' for bar and `h' for home, ! 176: or 0 or 25 as appropriate. ! 177: .SH AUTHOR ! 178: Alan Char ! 179: .SH FILES ! 180: .TP 25 ! 181: /usr/games/teachgammon ! 182: \- rules and tutorial ! 183: .br ! 184: .TP 25 ! 185: /etc/termcap ! 186: \- terminal capabilities ! 187: .SH BUGS ! 188: .PP ! 189: The program's strategy needs much work.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.