diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-01-28 23:18:52 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-01-28 23:18:52 +0300 |
commit | 5be5c3b838358a688512468332b04eeec13c4315 (patch) | |
tree | 8bde2de8b966e1b7bc4f13e29fac2244b2ee7e4c | |
parent | 6c15e34e6bb645a2a4b4e4939d98078cd4b2c74a (diff) | |
download | chessnost-5be5c3b838358a688512468332b04eeec13c4315.tar.gz |
feat: do not include queen when counting mobility
-rw-r--r-- | src/board/mod.rs | 4 |
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), } |