4#include "../test./validate.h"
bool isBoardStateValid(const S_BOARD *pos)
Performs a full internal consistency check of the board state.
void resetBoardState(S_BOARD *pos)
Reset board to empty state.
void mirrorBoardPosition(S_BOARD *pos)
Flip the board vertically, swapping colors and positions.
int loadFEN(char *fen, S_BOARD *pos)
Parse a FEN string into the given board state.
void updateListsMaterial(S_BOARD *pos)
Update piece lists, material counts, and pawn bitboards from scratch.
bool isPieceListValid(const S_BOARD *pos)
Validate that piece list array is consistent with board state.
void printBoardState(const S_BOARD *pos)
Print the board to stdout in a human-readable format.