diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-08-31 14:35:34 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-08-31 14:35:34 +0300 |
commit | b60569d4b1c1342ca33e6b4bf1a2cfcd7d77960c (patch) | |
tree | 02b88fbfcd8f73fdb58106a856a8110ccdfc8e9a | |
parent | 02a87211a862e76a5fa7611fe1d1dcdc270a9d47 (diff) | |
download | chessnost-b60569d4b1c1342ca33e6b4bf1a2cfcd7d77960c.tar.gz |
feat: do not score quiet moves
-rw-r--r-- | src/grossmeister/move_selector.rs | 3 |
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() { |