Clear history table on ucinewgame

This commit is contained in:
stefiosif
2025-03-28 23:19:57 +02:00
parent 478ed3511a
commit 0c953c4ac1

View File

@@ -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();