From 40735915d69355ce2ff912f5694f3fb37590cdfc Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Wed, 19 Feb 2020 19:58:37 +0100 Subject: [PATCH] Clear hash on new game in CECP Ensures reproducible results on repeated searches, e.g.: ``` xboard new go new go ``` Closes #80. --- src/xboard.cpp | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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(); -- 1.7.0.4