Clear history table on ucinewgame
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user