Skip to content

Commit

Permalink
chore: don't bulk count if the split flag is set
Browse files Browse the repository at this point in the history
  • Loading branch information
raklaptudirm committed Dec 8, 2024
1 parent 25ab5cd commit fdceb8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion games/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub fn perft<const SPLIT: bool, const BULK: bool, T: PositionType>(
) -> u64 {
// Bulk counting if enabled. Instead of calling make move and perft for each
// move at depth 1, just return the number of legal moves, which is equivalent.
if BULK && depth == 1 {
if BULK && !SPLIT && depth == 1 {
return position.count_moves::<true, true>() as u64;
}

Expand Down

0 comments on commit fdceb8b

Please sign in to comment.