move gen test

This commit is contained in:
2024-03-20 22:11:22 +01:00
parent 3b9fc1f872
commit 69790345c5
8 changed files with 71 additions and 20 deletions

View File

@ -20,10 +20,11 @@ struct move_t {
};
void genDirectionConsts();
uint_least8_t validMoves(struct gameState_t gameState, bool color, struct move_t *moves);
uint_least8_t validMoves(struct gameState_t gameState, struct move_t *moves);
uint_least8_t pieceValidMoves(struct gameState_t gameState, struct piece_t piece, uint_least8_t src,
struct move_t *moves, bool promotion);
void undoMove(uint_least64_t *board, struct move_t move, bool color);
struct gameState_t makeMove(struct gameState_t gameState, struct move_t move);
struct gameState_t computerMove(struct gameState_t gameState);
void initMagicTable();