9-add-perft (#17)
All checks were successful
Python tests (make) / test (push) Successful in 11s

Reviewed-on: #17
Co-authored-by: Josh <josh@joshuaschuett.com>
Co-committed-by: Josh <josh@joshuaschuett.com>
This commit is contained in:
2025-08-19 22:33:27 +00:00
committed by Josh
parent 15b1a03928
commit febbbe784a
3 changed files with 114 additions and 2 deletions

View File

@@ -98,6 +98,8 @@ in_check = _bind_opt("in_check", INCHECK_ARGS, C.c_bool)
attackers_to = _bind_opt("attackers_to", ATTACKERS_TO, C.c_uint64)
get_legal_moves = _bind_opt("get_legal_moves", GEN_LEGAL_MOVES, C.c_int)
PERFT_SIG = (C.POINTER(Board), C.c_int)
perft = _bind_opt("perft", PERFT_SIG, C.c_uint64)
# Attack cache tables.
KnightArr = (C.c_uint64 * 64)