mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-06 10:53:50 +08:00
Document why Book is defined static
This was not clear to someone on talkchess and actually is not trivial to understand. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -363,7 +363,7 @@ int64_t perft(Position& pos, Depth depth) {
|
||||
|
||||
bool think(Position& pos, const SearchLimits& limits, Move searchMoves[]) {
|
||||
|
||||
static Book book;
|
||||
static Book book; // Define static to initialize the PRNG only once
|
||||
|
||||
// Initialize global search-related variables
|
||||
StopOnPonderhit = StopRequest = QuitRequest = AspirationFailLow = false;
|
||||
|
||||
Reference in New Issue
Block a user