Remove uneeded c type references in signatures
This commit is contained in:
@@ -127,20 +127,20 @@ class ChessFFI:
|
|||||||
|
|
||||||
def gen_pseudo_moves(self, board, captures_only=False, cap=256):
|
def gen_pseudo_moves(self, board, captures_only=False, cap=256):
|
||||||
buf = (Move * cap)()
|
buf = (Move * cap)()
|
||||||
n = self._c_gen_pseudo_moves(C.byref(board), buf, captures_only)
|
n = self._c_gen_pseudo_moves(board, buf, captures_only)
|
||||||
return buf, n
|
return buf, n
|
||||||
|
|
||||||
|
|
||||||
def get_legal_moves(self, board, out):
|
def get_legal_moves(self, board, out):
|
||||||
return int(self._c_get_legal_moves(board, out))
|
return self._c_get_legal_moves(board, out)
|
||||||
|
|
||||||
|
|
||||||
def square_attacked(self, board, sq, by):
|
def square_attacked(self, board, sq, by):
|
||||||
return bool(self._c_square_attacked(C.byref(board), int(sq), int(by)))
|
return self._c_square_attacked(board, sq, by)
|
||||||
|
|
||||||
|
|
||||||
def in_check(self, board, side):
|
def in_check(self, board, side):
|
||||||
return bool(self._c_in_check(C.byref(board), int(side)))
|
return self._c_in_check(board, side)
|
||||||
|
|
||||||
|
|
||||||
def attackers_to(self, board, sq, by):
|
def attackers_to(self, board, sq, by):
|
||||||
|
|||||||
Reference in New Issue
Block a user