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:
Joost VandeVondele
2017-05-06 13:12:39 +02:00
committed by Joona Kiiski
parent 0c1f119069
commit 7edd1f7ccd
3 changed files with 14 additions and 10 deletions

View File

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