aboutsummaryrefslogtreecommitdiff
path: root/src/grossmeister/move_selector.rs
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-08-31 14:58:40 +0300
committereug-vs <eugene@eug-vs.xyz>2023-08-31 15:22:52 +0300
commitea63c58ce7e9dbc0e1c0e1cb679a89c038e2edd3 (patch)
tree737b0dab341a8b3ab45097be739c8d6a203612b6 /src/grossmeister/move_selector.rs
parentb60569d4b1c1342ca33e6b4bf1a2cfcd7d77960c (diff)
downloadchessnost-ea63c58ce7e9dbc0e1c0e1cb679a89c038e2edd3.tar.gz
fix: consider promotion a tactical move
Diffstat (limited to 'src/grossmeister/move_selector.rs')
-rw-r--r--src/grossmeister/move_selector.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grossmeister/move_selector.rs b/src/grossmeister/move_selector.rs
index fa113ce..33f836b 100644
--- a/src/grossmeister/move_selector.rs
+++ b/src/grossmeister/move_selector.rs
@@ -220,7 +220,7 @@ impl Grossmeister {
if self.move_selector().stage_moves.moves.is_empty() {
let new_stage =
self.move_selector().tactical_moves.iter()
- .filter(|(m, score)| m.is_tactical() && *score < 0.0)
+ .filter(|(_, score)| *score < 0.0)
.copied()
.collect();
self.init_stage(new_stage);