aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/grossmeister/search.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/grossmeister/search.rs b/src/grossmeister/search.rs
index 1aa73a0..fb7e385 100644
--- a/src/grossmeister/search.rs
+++ b/src/grossmeister/search.rs
@@ -292,8 +292,8 @@ impl Grossmeister {
}
println!();
- // If our is mate in N, we break at depth N
- if SCORE_MATE - search_result.0.abs() == depth as f32 {
+ // If our score is mate in N, we break at depth N
+ if depth as f32 >= SCORE_MATE - search_result.0.abs() {
result = Some(search_result);
break;
}