mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 12:07:43 +00:00
Add "Best Book Move" UCI option
Is a boolean option that when set allows Stockfish to select the best book move across the possible ones. Feature requested by Salvo Spitaleri. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+1
-1
@@ -387,7 +387,7 @@ bool think(const Position& pos, bool infinite, bool ponder, int side_to_move,
|
||||
if (get_option_value_string("Book File") != OpeningBook.file_name())
|
||||
OpeningBook.open(get_option_value_string("Book File"));
|
||||
|
||||
Move bookMove = OpeningBook.get_move(pos);
|
||||
Move bookMove = OpeningBook.get_move(pos, get_option_value_bool("Best Book Move"));
|
||||
if (bookMove != MOVE_NONE)
|
||||
{
|
||||
if (PonderSearch)
|
||||
|
||||
Reference in New Issue
Block a user