Skip to content

Commit

Permalink
Fix PV calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
jnlt3 committed Mar 31, 2022
1 parent 4a9edbf commit 12e7170
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bm/bm_search/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ pub fn search<Search: SearchType>(
if Some(make_move) == skip_move {
continue;
}
local_context.search_stack_mut()[ply as usize + 1].pv_len = 0;

move_exists = true;
let is_capture = pos
.board()
Expand Down Expand Up @@ -776,4 +778,4 @@ fn piece_pts(piece: Piece) -> i16 {
Piece::Queen => 900,
Piece::King => 20000,
}
}
}

0 comments on commit 12e7170

Please sign in to comment.