diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-01-30 18:00:19 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-01-30 18:00:19 +0300 |
commit | 1de24b83d4c14e8221ad75cb64e8b1230238c36a (patch) | |
tree | 0f0bb6c6df5f0b01b6eee518623a3c516abb3b28 | |
parent | 622773f70a4b43ee8a6f62389b03ad27ed82b5fd (diff) | |
download | chessnost-1de24b83d4c14e8221ad75cb64e8b1230238c36a.tar.gz |
feat: slightly alter evaluation coefficients
-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 |