#ifndef SRC_BOARD_H_ #define SRC_BOARD_H_ #include #include enum pieceType { NONE, PAWN, KNIGHT, BISHOP, ROOK, QUEEN, KING, }; const char toChar(pieceType type) struct Piece { bool color; pieceType type; bool moved; }; struct board { Piece pieces[64]; bool turn; // 1 white; 0 black std::string castle; uint8_t halfMoveClock; uint16_t MoveClock; }; void printBoard(board *b); void setBoardFen(std::string fen, board *b); Piece createPiece(pieceType type, bool color, bool moved = false); #endif /* SRC_BOARD_H_ */