diff options
Diffstat (limited to 'src/board/engine.rs')
-rw-r--r-- | src/board/engine.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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 |