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