Add Null-move pruning

This commit is contained in:
stefiosif
2025-01-29 23:09:01 +02:00
parent 91ad3de8b1
commit 888b3866b9
7 changed files with 125 additions and 12 deletions

View File

@@ -79,8 +79,10 @@ mod tests {
let mut game = from_fen(FEN).unwrap();
let time_info = TimeInfo::new(std::time::Instant::now(), 30000, 100);
negamax(&mut game, MIN_SCORE, MAX_SCORE, 2, 0, &time_info, &mut 0)
.expect("Expected a search result");
negamax(
&mut game, MIN_SCORE, MAX_SCORE, 2, 0, &time_info, &mut 0, true,
)
.expect("Expected a search result");
dbg!(time_info.instant.elapsed());