xchess.1 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. .TH XCHESS 1 "14 Nov 1986" "X Version 10"
  2. .SH NAME
  3. xchess \- X chess display
  4. .SH SYNOPSIS
  5. .B xchess
  6. [ option ... ] [ white-display ] [ black-display ]
  7. .SH DESCRIPTION
  8. .PP
  9. .B xchess
  10. is a chess display program which allows players to play a game on either
  11. one or two displays, or play a chess-playing program. It uses the
  12. .B X
  13. window system. If one or no display names are given, it will open up one
  14. window and both black and white at the same board. If two displays are
  15. given,
  16. .B xchess
  17. will accept moves from each player in his turn. Black's board will be drawn
  18. with his pieces at the bottom.
  19. .PP
  20. .B xchess
  21. will not allow a player to make an illegal move. It accepts all legal moves,
  22. including castling and pawn capture \fIen passant\fR.
  23. .SH OPTIONS
  24. .TP 8
  25. .B -d
  26. Turn on debugging.
  27. .TP 8
  28. .B -f record-file
  29. Use \fBrecord-file\fR for saving the game when the \fBSave\fR button is
  30. selected, or if the \fB-s\fR flag is given. The default is "xchess.game".
  31. .TP 8
  32. .B -r saved-game
  33. Start with the position at the end of the saved game in the named file.
  34. This file may be the result of the \fBSave\fR command, and may be in
  35. either English or International format. When reading moves, one move
  36. it made per second.
  37. .TP 8
  38. .B -q
  39. Don't pause for a second every time a move is made when a game is being
  40. restored.
  41. .TP 8
  42. .B -v
  43. Whenever a piece is moved, outline the path with a "lightning bolt".
  44. This option and the \fB-n\fR option are useful if you don't want to miss
  45. an opponent's move when he makes it.
  46. .TP 8
  47. .B -i
  48. Use International format for recording moves (squares numbered 1-8, a-h)
  49. as opposed to English (e.g, \fIp/k4xp/q5\fR).
  50. .TP 8
  51. .B -t moves/timeunit
  52. Allows \fBtimeunit\fR seconds for every \fBmoves\fR moves. If either player
  53. exceeds this allowance both recieve a message saying informing them of
  54. this fact.
  55. .TP 8
  56. .B -c
  57. Play the computer.
  58. .B xchess
  59. will start up a chess-playing program (currently the only one it knows
  60. how to talk to is \fBGNU Chess\fR).
  61. .TP 8
  62. .B -p program
  63. The name of the program to use if the \fB-c\fR option is given. The
  64. default is "/usr/public/gnuchess". Note that \fBgnuchess\fR must be
  65. compiled with the \fIcompat\fR flag (in the file "main.c") set to 1.
  66. .TP 8
  67. .B -b
  68. If the \fB-c\fR flag was given, have the computer play white.
  69. .TP 8
  70. .B -bnw
  71. If the display has more than one display plane (i.e, is color), pretend
  72. it's black and white.
  73. .TP 8
  74. .B -s
  75. Save the moves in the record file as they are made. This is useful if
  76. you don't want your game to be lost when \fBxchess\fR core dumps.
  77. .TP 8
  78. .B -n
  79. Be noisy \- beep after every move is made.
  80. .TP 8
  81. .B -h host
  82. Run GNU Chess on the specified \fBhost\fR.
  83. .TP 8
  84. .B -R
  85. Randomly chose who plays white and who plays black, if two displays are
  86. given.
  87. .SH CONTROLS
  88. .PP
  89. The window is divided up into several sub-windows. The pieces are moved by
  90. pushing down any mouse button on top of the piece, moving to the destination
  91. square, and releasing it. Castling is done by moving the king to the
  92. right square. If you push down on a piece and then let the button
  93. up without moving it, you must move that piece. ("Touch it, move it.")
  94. .PP
  95. The progress of the game is listed in the "Game Record" window. Error
  96. messages and such things are printed in the "Message" window. Both these
  97. windows have scroll bars that you can use to move around.
  98. There are also windows for clocks and for a record of the pieces captured.
  99. .PP
  100. If you type any keys in the window, the text will go into the message
  101. window of both players. This provides a simple communication facility.
  102. .PP
  103. There are 9 buttons in the control window. They are as follows:
  104. .TP 8
  105. .B Draw
  106. Both players must push this button to agree on a draw (just one is ok
  107. if only one display is being used).
  108. .TP 8
  109. .B Resign
  110. The player whose turn it is to move resigns.
  111. .TP 8
  112. .B Reset
  113. Start over from the beginning.
  114. .TP 8
  115. .B Back
  116. Retract a move. If two displays are being used the other player will be
  117. asked to confirm this.
  118. .TP 8
  119. .B Fwd
  120. This will re-play the most recently retracted move. This button in conjunction
  121. with \fBBack\fR is useful for "scrolling around" in a saved game.
  122. .TP 8
  123. .B Save
  124. Save the game in the record file.
  125. .TP 8
  126. .B Flip
  127. Rotate the board so that Black will have his pieces at the bottom.
  128. .TP 8
  129. .B Switch
  130. Change the mapping of boards to players.
  131. .TP 8
  132. .B Pause
  133. This button has two functions. When a game is being restored, pieces will
  134. be moved once a second. Hitting \fBPause\fR will stop this process, and
  135. hitting it again will restart it. During the time that it is stopped no
  136. other action can be made except restarting it. While a game is being played,
  137. \fBPause\fR will stop the clock and restart it.
  138. .SH DEFAULTS
  139. .PP
  140. \fBxchess\fR uses the following \fI.Xdefaults\fR:
  141. .TP 8
  142. .B Noisy
  143. The -n flag.
  144. .TP 8
  145. .B SaveMoves
  146. The -s flag.
  147. .TP 8
  148. .B Algebraic
  149. The -i flag.
  150. .TP 8
  151. .B BlackAndWhite
  152. The -bnw flag.
  153. .TP 8
  154. .B QuickRestore
  155. The -q flag.
  156. .TP 8
  157. .B Flash
  158. The -v flag.
  159. .TP 8
  160. .B NumFlashes
  161. How many times to flash the move. The default is 5.
  162. .TP 8
  163. .B FlashWidth
  164. How big to make the lightning bolt. The default is 10 pixels.
  165. .TP 8
  166. .B ProgName
  167. The -p option. This may also be changed in the Makefile (-DDEF_PROG_NAME).
  168. .TP 8
  169. .B ProgHost
  170. The -h option.
  171. .TP 8
  172. .B RecordFile
  173. The -f option.
  174. .TP 8
  175. .B BlackPiece
  176. The color of the black pieces.
  177. .TP 8
  178. .B WhitePiece
  179. The color of the white pieces.
  180. .TP 8
  181. .B BorderColor
  182. The color of the borders.
  183. .TP 8
  184. .B BlackSquare
  185. The color of the black squares.
  186. .TP 8
  187. .B WhiteSquare
  188. The color of the white squares.
  189. .TP 8
  190. .B TextColor
  191. The color of routine messages and the move record text.
  192. .TP 8
  193. .B ErrorText
  194. The color of error messages.
  195. .TP 8
  196. .B PlayerText
  197. The color of player-entered text.
  198. .TP 8
  199. .B TextBack
  200. The background color for the two text windows.
  201. .TP 8
  202. .B CursorColor
  203. The color of the mouse and the text cursors.
  204. .SH "SEE ALSO"
  205. X(8), gnuchess(1), chess(5)
  206. .SH AUTHOR
  207. Wayne A. Christopher (faustus@ic.berkeley.edu)
  208. .SH BUGS
  209. .PP
  210. Checkmate and stalemate are not detected, so the appropriate player must resign
  211. or agree to a draw respectively.
  212. .PP
  213. \fBSwitch\fR doesn't work.
  214. .PP
  215. If you are playing \fBgnuchess\fR, and you select Undo a few times so that it
  216. is \fBgnuchess\fR's turn to move, it won't do anything.