From: Fabian Fichter Date: Wed, 19 Feb 2020 18:58:37 +0000 (+0100) Subject: Clear hash on new game in CECP X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=40735915d69355ce2ff912f5694f3fb37590cdfc;p=fairystockfish.git Clear hash on new game in CECP Ensures reproducible results on repeated searches, e.g.: ``` xboard new go new go ``` Closes #80. --- diff --git a/src/xboard.cpp b/src/xboard.cpp index fdadf22..69e7252 100644 --- a/src/xboard.cpp +++ b/src/xboard.cpp @@ -122,6 +122,7 @@ void StateMachine::process_command(Position& pos, std::string token, std::istrin } else if (token == "new") { + Search::clear(); setboard(pos, states); // play second by default playColor = ~pos.side_to_move();