Skip to content

Commit

Permalink
Fix book name is hard coded as book.bin
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mcostalba committed Dec 18, 2009
1 parent 0d88b83 commit ad5b5ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit ad5b5ce

Please sign in to comment.