Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fdceb8b

Browse files
committedDec 8, 2024··
chore: don't bulk count if the split flag is set
1 parent 25ab5cd commit fdceb8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎games/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub fn perft<const SPLIT: bool, const BULK: bool, T: PositionType>(
2323
) -> u64 {
2424
// Bulk counting if enabled. Instead of calling make move and perft for each
2525
// move at depth 1, just return the number of legal moves, which is equivalent.
26-
if BULK && depth == 1 {
26+
if BULK && !SPLIT && depth == 1 {
2727
return position.count_moves::<true, true>() as u64;
2828
}
2929

0 commit comments

Comments
 (0)
Please sign in to comment.