13 .B [-s pathname] [-l pathname]
23 plays a game of japanese chess (shogi) against the user or it plays against itself.
29 file if it is present. It then looks for a
31 file. If it is present it adds its contents to the
35 file is writable a new combined
41 is an updated version of the gnuchess program.
42 It has a simple alpha-numeric board display,
43 or it can be compiled for use with the
45 program on a SUN workstation or with the
47 program under X-windows.
48 The program gets its opening moves from the file
50 which is located in a directory specified in the makefile.
51 To invoke the program type:
54 - simple curses based version
57 - xshogi compatible version
60 If one argument is given, it is the search time per move in
64 will generate one move every 30 seconds, while
66 will generate one move every 5 minutes.
68 If two or more arguments are given, they will be used to set tournament
69 time controls with the first argument of each pair being the number of moves and the second
70 being the total clock time in minutes[:seconds]. Thus, entering
73 the clocks for 5 minutes (300 seconds) for the first 60 moves,
76 will allow 3 minutes and 30 seconds for 30 moves.
78 .B gnushogi 30 5 1 :30
79 will allow 5 minutes for the first 30 moves and 30 seconds for each move after that.
80 Up to 4 pairs of controls may be specified.
82 If no argument is given the program will prompt the user for level of play.
86 , see the documentation on this programs.
91 consists of a sequence of openings.
92 An opening begins with a line starting with a
94 , the rest of the line is comments.
95 Following this is a series of moves in algebraic notation alternating black
96 and white separated by white space. A move may have a
98 after it indicating this move should never be made in this position.
99 Moves are stored as position:move so transpositions between openings
103 The hashfile if created should be on the order of 4 megabytes or
105 This file contains positions and moves learned from previous games.
106 If a hashfile is used the computer makes use of the experience it
107 gained in past games. Tests run so far show that it plays no worse
108 with the hashfile than without, but it is not clear yet whether
109 it provides a real advantage.
113 Piece letters are determined by the language file.
114 What is specified here is the default English.
118 is invoked, the program will display the board and prompt the user
119 for a move. To enter a move, use the notation
121 where the first letter-number pair indicates the origination square
122 and the second letter-number pair indicates the destination square.
123 An alternative is to use the notation
125 where the first letter indicates the piece type (p,l,n,s,g,b,r,k).
126 To promote append a + the type of the new piece to the move, as in
130 .SH "FUNCTION LETTERS"
134 .I lang from the file
136 If -L is not specified it uses the first language in the file.
139 Do not search on opponents time.
142 Do search on opponents time.
145 Use bookfile for opening book.
148 Use binbookfile for binary opening book.
151 Size of binbookfile for memory based books. For creating a binbookfile.
154 Number of plys to include in the binbookfile. For generating a binbookfile.
157 Create a new HASHFILE. File size is 2^size entries of approximately 65+? bytes.
166 Pathname of the loadfile use with the
172 Rehash length times in searching entries for position in transposition table.
175 Pathname of the save file to use with the
180 Show statistics for HASHFILE
183 Set the transposition table size to 2^size entries.
186 Show version and patchlevel.
191 as the evaluation window
195 In addition to legal moves, the following commands are available as responses.
197 command names are determined by the
199 file and may vary with the implementation. This is default English.
202 -- allow algrbraic input (not implemented)
205 -- change Alpha window (default score + 90)
208 -- change Beta window (default score - 90)
211 -- causes the program to beep after each move.
214 -- updates the current board position on the display.
217 -- turns off use of the opening library.
220 -- causes the computer to play both sides of a shogi game.
223 -- causes the computer to take the white pieces, if the computer is to move first the
226 -- saves a game to disk as a book textfile.
227 The program will prompt the user for a file name.
230 -- toggles game mode time control. Assumes the time specified for time control
231 is the time for a complete game. Input with the level command should be the game time
232 and the expected number of moves in a game.
234 command must be given.
237 -- show coordinates on the display (visual only)
240 -- allows the value of
245 -- asks for a piece as color piece, as wb or bn, and shows its calculated value on
249 -- sets level of debugging output if compiled with debug options.
252 -- allows the user to change the
253 search depth of the program. The maximum depth is 29 ply.
254 Normally the depth is set to 29 and the computer terminates
255 its search based on elapsed time rather than depth.
256 If depth is set to (say) 4 ply,
257 the program will search until all moves
258 have been examined to a depth of 4 ply (with extensions up
259 to 11 additional ply for sequences of checks and captures).
260 If you set a maximum time per move and also use the depth command,
261 the search will stop at the specified time or the specified depth, whichever
265 -- toggles easy mode (thinking on opponents time)
266 on and off. The default is easy mode ON. If easy mode is disabled,
267 the keyboard is polled for input every so often and when input is
268 seen the search is terminated. It may also be terminated with a
272 -- allows the user to set up a board position.
275 - command will clear the board.
278 - toggle piece color.
281 - command will exit setup mode.
287 - place a promoted pawn on 3b
290 - place a pawn to the captured pieces
292 Pieces are entered by typing a letter (p,l,n,s,g,b,r,k) for
293 the piece followed by the coordinate.
295 The usual warning about the
303 -- tells the computer to move first. Computer begins searching for a move.
307 -- allows the user to enter moves for both
308 sides. To get the program to play after a sequence of moves
309 has been entered use the 'black' or 'white' commands.
312 -- retrieves a game from disk. The program will
313 prompt the user for a file name.
316 -- use/don't use hashfile.
319 -- allows the user to change the minimum depth for using the hashfile and the number of moves from the
320 begining of the game to use it.
323 -- displays a short description of the commands and the current status of options.
326 -- tells the computer to move first. Computer begins searching for a move.
330 -- causes the program to supply the user with its predicted move.
333 -- allows the user to set time controls such as
334 60 moves in 5 minutes etc. In tournament mode, the program will
335 vary the time it takes for each
336 move depending on the situation. If easy mode is disabled (using
337 the 'easy' command), the program
338 will often respond with its move immediately, saving time on
339 its clock for use later on.
342 -- writes the game moves and some statistics
343 on search depth, nodes, and time to the file 'chess.lst'.
346 -- toggle material flag - draws on no pawns and both sides < rook
349 -- starts a new game.
352 -- evaluates the board and shows the point score for each piece. The total score for
353 a position is the sum of these individual piece scores.
356 -- causes the program to display the principle
357 variation and the score during the search. A score of
358 100 is equivalent to a 1 pawn advantage for the computer.
364 -- causes the program to randomize its move
368 -- set recapture mode.
371 -- backout the last level for both sides. Equal to 2
375 -- causes the board display to be reversed. That
376 is, the black pieces will now appear at the top of the board.
379 -- reverse board display.
382 -- saves a game to disk. The program will prompt
383 the user for a file name.
386 -- causes the program to switch places with
387 the opponent and begin searching.
390 -- performs some speed tests for MoveList and CaptureList generation, and ScorePosition position scoring
391 for the current board.
394 -- set computers time remaining, intended for synchronizing clocks among multiple players.
397 -- toggle tsume mode. In tsume mode, not all possible moves will be
398 generated. If a king is in check, only moves that makes the king not being
399 in check are generated. If the king is not in check, only moves that give
400 check to the opponents king are generated.
403 -- undoes the last move whether it was the computer's
404 or the human's. You may also type "remove". This is equivalent
405 to two "undo's" (e.g. retract one move for each side).
408 -- causes the computer to take the black pieces, if the computer is to move first the
410 command must be given.
423 -- change X window. The window around alpha/beta used to determine whether the position
424 should be scored or just estimated.