mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Big book.cpp cleanup
Better document PolyGlot formats and greatly reduce line count. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -423,7 +423,7 @@ bool think(Position& pos, bool infinite, bool ponder, int time[], int increment[
|
||||
// Look for a book move, only during games, not tests
|
||||
if (UseTimeManagement && Options["OwnBook"].value<bool>())
|
||||
{
|
||||
if (Options["Book File"].value<std::string>() != OpeningBook.file_name())
|
||||
if (Options["Book File"].value<std::string>() != OpeningBook.name())
|
||||
OpeningBook.open(Options["Book File"].value<std::string>());
|
||||
|
||||
Move bookMove = OpeningBook.get_move(pos, Options["Best Book Move"].value<bool>());
|
||||
|
||||
Reference in New Issue
Block a user