From 7a8845f9d089d9b5b70c5842d1d77e157374ac75 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Wed, 1 Feb 2023 01:38:39 +0300 Subject: feat: exclude pawncontrolled squares from mobility --- src/board/engine.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/board/engine.rs') diff --git a/src/board/engine.rs b/src/board/engine.rs index 10fb604..6491289 100644 --- a/src/board/engine.rs +++ b/src/board/engine.rs @@ -263,7 +263,7 @@ impl Board { let king_tropism_penalty = self.king_tropism(color) - self.king_tropism(opponent_color); material_advantage - + 0.1 * mobility_advantage + + 0.15 * mobility_advantage - 0.3 * pawn_structure_penalty + king_tropism_penalty * (opponent_material / 40.0) * 0.07 } -- cgit v1.2.3