From 1de24b83d4c14e8221ad75cb64e8b1230238c36a Mon Sep 17 00:00:00 2001 From: eug-vs Date: Mon, 30 Jan 2023 18:00:19 +0300 Subject: feat: slightly alter evaluation coefficients --- src/board/engine.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/board/engine.rs b/src/board/engine.rs index a87e8b0..73ddf3c 100644 --- a/src/board/engine.rs +++ b/src/board/engine.rs @@ -197,7 +197,10 @@ impl Board { let king_tropism_penalty = self.king_tropism(color) - self.king_tropism(opponent_color); - material_advantage + 0.1 * mobility_advantage - 0.4 * pawn_structure_penalty + king_tropism_penalty * opponent_material / 150.0 + material_advantage + + 0.1 * mobility_advantage + - 0.3 * pawn_structure_penalty + + king_tropism_penalty * (opponent_material / 40.0) * 0.07 } /// Evaluate move for move ordering, prioritizing efficient captures -- cgit v1.2.3