From 0c953c4ac14664debb314ec3125d928a727c1583 Mon Sep 17 00:00:00 2001 From: stefiosif Date: Fri, 28 Mar 2025 23:19:57 +0200 Subject: [PATCH] Clear history table on `ucinewgame` --- src/interface/uci.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/interface/uci.rs b/src/interface/uci.rs index 34e296c..621f479 100644 --- a/src/interface/uci.rs +++ b/src/interface/uci.rs @@ -237,6 +237,7 @@ pub fn uci_loop() -> anyhow::Result<()> { Command::UciNewGame => { if let Some(game) = params.game.as_mut() { game.tt = TranspositionTable::new(); + game.history_heuristic = [[[0; 64]; 64]; 2]; game.board = Board::startpos(); } else { let game = Game::new();