table of contents
other versions
- wheezy 1.3.2-9
- jessie 1.4.2-3
- testing 1.4.2-3+b2
- unstable 1.4.2-3+b2
- experimental 1.5~git20140725-1
| gnushogi(6) | Games Manual | gnushogi(6) |
NAME¶
gnushogi - GNU Shogi (Japanese Chess), version 1.3SYNOPSIS¶
gnushogi [ [[-]a] [-b bookfile] [-B binbookfile] [-C] [-h langfile] [-L langfile] [-r length] [-R] [-s pathname] [-l pathname] [-S binbooksize] [-t] [-c size] [-T size] [-v] [-x] [-X] arg1 arg2 ]DESCRIPTION¶
Gnushogi plays a game of japanese chess (shogi) against the user or it plays against itself. At startup Gnushogi reads the binbook file if it is present. It then looks for a book file. If it is present it adds its contents to the binbook data. If the binbook file is writable a new combined binbook file is written.- gnushogi -C
- - simple curses based version
- gnushogi -X (or just gnushogi)
- - xshogi compatible version
- gnushogi -R
- - raw test display version
TIME CONTROLS¶
If one argument is given, it is the search time per move in [minutes:]seconds. So gnushogi 30 will generate one move every 30 seconds, while gnushogi 5:00 will generate one move every 5 minutes.BOOK¶
The book gnushogi.tbk consists of a sequence of openings. An opening begins with a line starting with a # , the rest of the line is a comment. Following this is a series of moves in algebraic notation alternating black and white separated by white space. A move may have a ? after it indicating this move should never be made in this position. Moves are stored as position:move so transpositions between openings can take place.HASHFILE¶
The hashfile if created should be on the order of 4 megabytes or gnushogi -c 22. This file contains positions and moves learned from previous games. If a hashfile is used the computer makes use of the experience it gained in past games. Tests run so far show that it plays no worse with the hashfile than without, but it is not clear yet whether it provides a real advantage.LEGAL MOVES¶
Note: Piece letters are determined by the language file. What is specified here is the default (English). Once gnushogi is invoked, the program will display the board and prompt the user for a move. To enter a move, use the notation 7g7f where the first letter-number pair indicates the origin square and the second letter-number pair indicates the destination square. An alternative is to use the notation P7f where the first letter indicates the piece type (P,L,N,S,G,B,R,K). To promote append a + the type of the new piece to the move, as in 2d2c+ or P2c+. Note that you must use capital letters for the pieces by default.COMMAND-LINE OPTIONS¶
- -a
- Do not search on opponent's time.
- a
- Do search on opponent's time.
- -b bookfile
- Use bookfile for opening book.
- -B binbookfile
- Use binbookfile for binary opening book.
- -c size
- Create a new HASHFILE. File size is 2^size entries of approximately 65+? bytes.
- -C
- Use curses-based display mode.
- -h
- Do not use hashfile.
- h
- Do use hashfile.
- -l pathname
- Pathname of the loadfile use with get or xget.
- -L lang
- Use language lang from the file gnushogi.lang. If -L is not specified it uses the first language in the file.
- -P plylevels
- Number of plys to include in the binbookfile. For generating a binbookfile.
- -r length
- Rehash length times in searching entries for position in transposition table.
- -R
- Use raw text display mode. This can be used for dumb terminals or for systems that don't have curses.
- -s pathname
- Pathname of the save file to use with the save command.
- -S size
- Size of binbookfile for memory based books. For creating a binbookfile.
- -t
- Show statistics for HASHFILE
- -T size
- Set the transposition table size to 2^size entries.
- -v
- Show version and patchlevel.
- -x value
- Use value as the evaluation window xwndw.
- -X
- Use xshogi display mode (the default).
COMMANDS¶
In addition to legal moves, the following commands are available as responses. Note: command names are determined by the language file and may vary with the implementation. The default language is English. alg -- allow algebraic input (not implemented) Awindow -- change Alpha window (default score + 90) Bwindow -- change Beta window (default score - 90) beep -- toggles beeping after each move (default: on). bd -- updates the current board position on the display. book -- turns off use of the opening library. both -- causes the computer to play both sides of a shogi game. black -- causes the computer to take the white pieces, if the computer is to move first. bsave -- saves a game to disk as a book textfile. The program will prompt the user for a file name. gamein -- toggles game mode time control. Assumes the time specified for time control is the time for a complete game. Input with the level command should be the game time and the expected number of moves in a game. go command must be given. coords -- show coordinates on the display (visual only) contempt -- allows the value of contempt to be modified. debug -- asks for a piece as color piece, as wb or bn, and shows its calculated value on each square. debuglevel -- sets level of debugging output if compiled with debug options. depth -- allows the user to change the search depth of the program. The maximum depth is 29 ply. Normally the depth is set to 29 and the computer terminates its search based on elapsed time rather than depth. If depth is set to (say) 4 ply, the program will search until all moves have been examined to a depth of 4 ply (with extensions up to 11 additional ply for sequences of checks and captures). If you set a maximum time per move and also use the depth command, the search will stop at the specified time or the specified depth, whichever comes first. easy -- toggles easy mode (thinking on opponents time) on and off. The default is easy mode ON. If easy mode is disabled, the keyboard is polled for input every so often and when input is seen the search is terminated. It may also be terminated with a sigint. edit -- allows the user to set up a board position.BUGS¶
SEE ALSO¶
xshogi(6)