From b60569d4b1c1342ca33e6b4bf1a2cfcd7d77960c Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 31 Aug 2023 14:35:34 +0300 Subject: feat: do not score quiet moves --- src/grossmeister/move_selector.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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() { -- cgit v1.2.3