mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Execute an implied ucinewgame at startup
execute an implied ucinewgame upon entering the UCI::loop, to make sure that searches starting with and without an (optional) ucinewgame command yield the same search. This is needed now that seach::clear() initializes tables to non-zero default values. No functional change Closes #1101 Closes #1104
This commit is contained in:
committed by
Joona Kiiski
parent
0c1f119069
commit
7edd1f7ccd
@@ -24,7 +24,6 @@
|
||||
#include "position.h"
|
||||
#include "search.h"
|
||||
#include "thread.h"
|
||||
#include "tt.h"
|
||||
#include "uci.h"
|
||||
#include "syzygy/tbprobe.h"
|
||||
|
||||
@@ -44,8 +43,6 @@ int main(int argc, char* argv[]) {
|
||||
Search::init();
|
||||
Pawns::init();
|
||||
Threads.init();
|
||||
Tablebases::init(Options["SyzygyPath"]);
|
||||
TT.resize(Options["Hash"]);
|
||||
|
||||
UCI::loop(argc, argv);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user