diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-02-01 01:38:39 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-02-01 01:38:39 +0300 |
commit | 7a8845f9d089d9b5b70c5842d1d77e157374ac75 (patch) | |
tree | 5c8cb3e225feda1507e4388523b313a61e44e111 /src/board/engine.rs | |
parent | 41389a25e6e2aac395810029cce070cddec6ae86 (diff) | |
download | chessnost-7a8845f9d089d9b5b70c5842d1d77e157374ac75.tar.gz |
feat: exclude pawncontrolled squares from mobility
Diffstat (limited to 'src/board/engine.rs')
-rw-r--r-- | src/board/engine.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |