Fix attack cache tests

This commit is contained in:
2025-08-22 14:53:10 -04:00
parent 2a7948eab4
commit 616c456964
2 changed files with 23 additions and 16 deletions

View File

@@ -100,6 +100,13 @@ def get_rank_mask(rank):
return sum(1 << (rank*8 + f) for f in range(8))
def bb_from(*algebraic):
m = 0
for s in algebraic:
m |= (1 << sq(s))
return m
class ChessFFI:
def __init__(self):
self.lib_path = "./build/libchess.so"