From a90a990118fa84d1e6138654dd24d2f7f4ec3761 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 1 Oct 2011 06:35:24 +0100 Subject: [PATCH] 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 --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index ed18936f..1f848183 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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; -- 2.39.2