11-add-attack-detection #15

Merged
Josh merged 3 commits from 11-add-attack-detection into main 2025-08-19 15:56:28 +00:00
Showing only changes of commit 7db0e3b90f - Show all commits

View File

@@ -85,6 +85,7 @@ class TestAttackers(ChessLibTestBase):
actual = bool(is_in_check(b, side)) actual = bool(is_in_check(b, side))
self.assertEqual(expected, actual, msg) self.assertEqual(expected, actual, msg)
def test_attackers_to_popcount(self): def test_attackers_to_popcount(self):
cases = [ cases = [
# Pawns (original correction): only c5 & e5 attack d4 # Pawns (original correction): only c5 & e5 attack d4