diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-08-31 14:58:40 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-08-31 15:22:52 +0300 |
commit | ea63c58ce7e9dbc0e1c0e1cb679a89c038e2edd3 (patch) | |
tree | 737b0dab341a8b3ab45097be739c8d6a203612b6 /src/grossmeister | |
parent | b60569d4b1c1342ca33e6b4bf1a2cfcd7d77960c (diff) | |
download | chessnost-ea63c58ce7e9dbc0e1c0e1cb679a89c038e2edd3.tar.gz |
fix: consider promotion a tactical move
Diffstat (limited to 'src/grossmeister')
-rw-r--r-- | src/grossmeister/move_selector.rs | 2 |
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); |