aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-08-31 14:35:34 +0300
committereug-vs <eugene@eug-vs.xyz>2023-08-31 14:35:34 +0300
commitb60569d4b1c1342ca33e6b4bf1a2cfcd7d77960c (patch)
tree02b88fbfcd8f73fdb58106a856a8110ccdfc8e9a
parent02a87211a862e76a5fa7611fe1d1dcdc270a9d47 (diff)
downloadchessnost-b60569d4b1c1342ca33e6b4bf1a2cfcd7d77960c.tar.gz
feat: do not score quiet moves
-rw-r--r--src/grossmeister/move_selector.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/grossmeister/move_selector.rs b/src/grossmeister/move_selector.rs
index a3671e4..fa113ce 100644
--- a/src/grossmeister/move_selector.rs
+++ b/src/grossmeister/move_selector.rs
@@ -207,7 +207,8 @@ impl Grossmeister {
MoveGenStage::Quiet => {
if self.move_selector().stage_moves.moves.is_empty() {
let moves = self.board.generate_moves_core(false);
- let scored = self.score_moves(moves);
+ // No need to score quiet moves? TODO: doublecheck
+ let scored = moves.iter().map(|&m| (m, 0.0)).collect();
self.init_stage(scored);
}
match self.move_selector().stage_moves.next() {