📄 backgammon.src
字号:
.\" backgammon.src 4.1 82/05/11.th BACKGAMMON PUBLIC \n(mo/\n(dy/\n(yr.sh NAMEbackgammon - the game of backgammon.sh SYNOPSIS.bd backgammon[ - ] [ n r w b pr pw pb t\c.it terms\c.it file].sh DESCRIPTIONThis program lets you play backgammon against the computeror against a "friend".All commands only are one letter,so you don't need to type a carriage return,except at the end of a move.The program is mostly self documenting,so that a question mark (?) will usually get some help.If you answer `y' when the program asks if you want the rules,you will get text explaining the rules of the game,some hints on strategy,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 beobtained by answering `y' when it asks if you want instructions..s3The possible arguments for backgammon(most are unnecesary but some are very convenient)consist of:.ne 11.s3.na.lp 16 8.bn ndon't ask for rules or instructions.lp 16 8.bn rplayer is red (implies n).lp 16 8.bn wplayer is white (implies n).lp 16 8.bn btwo players, red and white (implies n).lp 16 8.bn prprint the board before red's turn.lp 16 8.bn pwprint the board before white's turn.lp 16 8.bn pbprint the board before both player's turn.lp 16 8.bn t\fitermterminal is type.it term,uses /etc/termcap.lp 16 8.bn s\fifilerecover previously saved game from.it file.(This can also be done by executing the saved file,i.e., typing its name in as a command).s3.ad.i0Arguments 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..s3If.it termhas capabilities for direct cursor movement (see ttycap(VII)),.it 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 matchthe entry in the /etc/htmp data base.).sh QUICK\ REFERENCEWhen the program prompts by typing only your color,type a space or carriage return to roll, or.ne 5.s3.na.lp 16 8.bn dto double.lp 16 8.bn pto print the board.lp 16 8.bn qto quit.lp 16 8.bn sto save the game for later.s3.i0.adWhen the program prompts with 'Move:', type.ne 4.s3.na.lp 16 8.bn pto print the board.lp 16 8.bn qto quit.lp 16 8.bn sto save the game.ad.i0.s3or a.it move,which is a sequence of.ne 4.s3.na.lp 16 8.bn s-fmove from.bd sto.bd f.lp 16 8.bn s/rmove one man on.bd sthe roll.bd r.ad.i0.s3separated by commas or spaces and ending with a newline.Available abbreviations are.ne 4.s3.na.lp 18 10.bn s-f1-f2means.bd s-f1,f1-f2.lp 18 10.bn s/r1r2means.bd s/r1,s/r2.ad.i0.s3Use `b' for bar and `h' for home,or 0 or 25 as appropriate..sh AUTHORAlan Char.sh FILES.lp 30 25.bn /mnt/alan/:toys/teachgammon- rules and tutorial.br.lp 30 25.bn /etc/htmp- data base on user's environment.br.lp 30 25.bn /etc/termcap- terminal capabilities.i0.sh BUGSThe program's strategy needs much work..s3/mnt/alan/:toys/teachgammon was removed to preserve space in /usr/public.sh COMMENTSThe program is still under development,so a description of any bugs found should be mailed to.bd alan..s3Because of the dynamic state of the program(constantly changing),the file.it /mnt/alan/:toys/gammon.newslists current modifications to the program.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -