mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 10:57:43 +00: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:
+1
-1
@@ -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