Add one killer move per ply

This commit is contained in:
stefiosif
2025-01-27 22:21:21 +02:00
parent b4f61f6504
commit ccba6451aa
6 changed files with 39 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ use crate::board::board::{Board, Color, PieceType};
use crate::board::game::Game;
use crate::board::state::{Castle, State};
use crate::search::transposition_table::TranspositionTable;
use crate::search::MAX_TT_SIZE;
use crate::search::{MAX_DEPTH, MAX_TT_SIZE};
use String as FenError;
pub fn from_fen(fen: &str) -> Result<Game, FenError> {
@@ -37,6 +37,7 @@ pub fn from_fen(fen: &str) -> Result<Game, FenError> {
mailbox,
hash,
tt: TranspositionTable::new(MAX_TT_SIZE),
killer: [None; MAX_DEPTH as usize],
})
}