aboutsummaryrefslogtreecommitdiff
path: root/src/board
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-01-28 23:18:52 +0300
committereug-vs <eugene@eug-vs.xyz>2023-01-28 23:18:52 +0300
commit5be5c3b838358a688512468332b04eeec13c4315 (patch)
tree8bde2de8b966e1b7bc4f13e29fac2244b2ee7e4c /src/board
parent6c15e34e6bb645a2a4b4e4939d98078cd4b2c74a (diff)
downloadchessnost-5be5c3b838358a688512468332b04eeec13c4315.tar.gz
feat: do not include queen when counting mobility
Diffstat (limited to 'src/board')
-rw-r--r--src/board/mod.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/board/mod.rs b/src/board/mod.rs
index f4fde0c..2b186d4 100644
--- a/src/board/mod.rs
+++ b/src/board/mod.rs
@@ -518,9 +518,7 @@ impl Board {
}
}
PieceType::Queen => {
- for source in serialize_bitboard(*piece) {
- mobility += pop_count(self.attacks.queen(self.occupancy, source) & (empty | opponent_occupancy)) as f32;
- }
+ // We do not include queen moves in mobility!
}
incorrect_type => panic!("Incorrect piece type: {:?}", incorrect_type),
}