From 5be5c3b838358a688512468332b04eeec13c4315 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 28 Jan 2023 23:18:52 +0300 Subject: feat: do not include queen when counting mobility --- src/board/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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), } -- cgit v1.2.3