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

@@ -185,7 +185,7 @@ void Search::init() {
}
/// Search::clear() resets search state to zero, to obtain reproducible results
/// Search::clear() resets search state to its initial value, to obtain reproducible results
void Search::clear() {