Bug with usebook and edit position?
Posted: 12 Jul 2016, 20:28
In WinBoard 4.8.0b I think there is an issue with using a GUI book (usebook) together with the edit position command. In short if one edit to a position that will play a book move, no move will be played on the board and the engine will run out of time.
Steps to reproduce:
Result: White clock will count down, but white will never make a move.
If I rerun the steps, but keep "first has own book" selected, bypassing WinBoard's GUI book, everything works okay.
Looking at the debug log it looks like WinbBoard GUI decide on a book move, send it to the engine, but then sending an undo command. After that the GUI does not do the book move on the board, but keeps the engine in force mode and lets white clock run out of time.
This is from the debug log:
Steps to reproduce:
- Winboard startup dialog
- Select "Fruit 2.1" -fcp "polyglot _PG/fruit.ini"
- Additional options: -debug
- Options/Common engine
- select use book
- unselect first has own book
- unselect second has own book
- mode/edit position
- select a position that gives a book hit: "rnbqkbnr/pppp1ppp/8/4p3/4P3/8/PPPP1PPP/RNBQKBNR w KQkq - 0 1"
- mode/machine white
Result: White clock will count down, but white will never make a move.
If I rerun the steps, but keep "first has own book" selected, bypassing WinBoard's GUI book, everything works okay.
Looking at the debug log it looks like WinbBoard GUI decide on a book move, send it to the engine, but then sending an undo command. After that the GUI does not do the book move on the board, but keeps the engine in force mode and lets white clock run out of time.
This is from the debug log:
- Code: Select all
100920 >first : ping 4
Impossible move , type = 0
100921 >first : force
write FEN 50-move: 0 0 0
e0. p=-6
100921 >first : setboard rnbqkbnr/pppp1ppp/8/4p3/4P3/8/PPPP1PPP/RNBQKBNR w KQkq - 0 1
EditPosDone
100923 >first : name AW
100923 >first : time 30000
100923 >first : otim 30000
book key = 0844931a6ef4b9a0
book move field = 405
book hit = g1f3
100923 >first : force
100924 >first : usermove g1f3
nps: w=-1, b=-1
Undoing extra move from first, gameMode 1
100935 >first : undo
100936 <first : # readyok
100936 <first :
100936 <first : pong 4