Skip to content

Commit

Permalink
fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
Nonlinear2 committed Nov 22, 2024
1 parent 916e977 commit e9e8b0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ constexpr bool is_loss(Value value) {
}

// mates, TB scores, infinite values and VALUE_NONE are considered decisive
constexpr bool is_decisive(Value value) { return std::abs(value) >= VALUE_TB_WIN_IN_MAX_PLY; }
constexpr bool is_decisive(Value value) { return value == VALUE_NONE || is_win(value) || is_loss(value); }

// In the code, we make the assumption that these values
// are such that non_pawn_material() can be used to uniquely
Expand Down

0 comments on commit e9e8b0a

Please sign in to comment.