mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Fix book name is hard coded as book.bin
Instead should be read by the corresponding UCI option "Book File". Bug reported and fixed by Justin Blanchard (Arch Linux) Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
0d88b832e3
commit
ad5b5cef4a
1 changed files with 1 additions and 1 deletions
|
@ -373,7 +373,7 @@ bool think(const Position& pos, bool infinite, bool ponder, int side_to_move,
|
|||
{
|
||||
Move bookMove;
|
||||
if (get_option_value_string("Book File") != OpeningBook.file_name())
|
||||
OpeningBook.open("book.bin");
|
||||
OpeningBook.open(get_option_value_string("Book File"));
|
||||
|
||||
bookMove = OpeningBook.get_move(pos);
|
||||
if (bookMove != MOVE_NONE)
|
||||
|
|
Loading…
Add table
Reference in a new issue