Clear history table on ucinewgame
This commit is contained in:
@@ -237,6 +237,7 @@ pub fn uci_loop() -> anyhow::Result<()> {
|
|||||||
Command::UciNewGame => {
|
Command::UciNewGame => {
|
||||||
if let Some(game) = params.game.as_mut() {
|
if let Some(game) = params.game.as_mut() {
|
||||||
game.tt = TranspositionTable::new();
|
game.tt = TranspositionTable::new();
|
||||||
|
game.history_heuristic = [[[0; 64]; 64]; 2];
|
||||||
game.board = Board::startpos();
|
game.board = Board::startpos();
|
||||||
} else {
|
} else {
|
||||||
let game = Game::new();
|
let game = Game::new();
|
||||||
|
|||||||
Reference in New Issue
Block a user