From ea63c58ce7e9dbc0e1c0e1cb679a89c038e2edd3 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 31 Aug 2023 14:58:40 +0300 Subject: fix: consider promotion a tactical move --- src/grossmeister/move_selector.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/grossmeister') 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); -- cgit v1.2.3