From: Marco Costalba Date: Sat, 30 Jun 2012 07:00:48 +0000 (+0100) Subject: Clear transposition table on "ucinewgame" X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=18505f1fc40643ed033f681c36dc5efa3ddf2a05;hp=dc88cd691f5b393fe52c1b2be93d467def7391ea Clear transposition table on "ucinewgame" It seems the standard behaviour as implemented in most engines although UCI protocol does not specify what to do upon "ucinewgame" command. No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/uci.cpp b/src/uci.cpp index 0ba4de3b..7b7b116e 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -25,6 +25,7 @@ #include "position.h" #include "search.h" #include "thread.h" +#include "tt.h" #include "ucioption.h" using namespace std; @@ -93,7 +94,7 @@ void uci_loop(const string& args) { go(pos, is); else if (token == "ucinewgame") - { /* Avoid returning "Unknown command" */ } + TT.clear(); else if (token == "isready") cout << "readyok" << endl;