aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-01-30 18:00:19 +0300
committereug-vs <eugene@eug-vs.xyz>2023-01-30 18:00:19 +0300
commit1de24b83d4c14e8221ad75cb64e8b1230238c36a (patch)
tree0f0bb6c6df5f0b01b6eee518623a3c516abb3b28 /src
parent622773f70a4b43ee8a6f62389b03ad27ed82b5fd (diff)
downloadchessnost-1de24b83d4c14e8221ad75cb64e8b1230238c36a.tar.gz
feat: slightly alter evaluation coefficients
Diffstat (limited to 'src')
-rw-r--r--src/board/engine.rs5
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