mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00: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:
parent
83d8fe2d59
commit
a90a990118
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue