Add perft testing

This commit is contained in:
2025-08-19 17:28:38 -04:00
parent 15b1a03928
commit 8cecd705a0
3 changed files with 55 additions and 0 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)