1
0
Fork 0
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:
Marco Costalba 2011-10-01 06:35:24 +01:00
parent 83d8fe2d59
commit a90a990118

View file

@ -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;