#ifndef _TYPES #define _TYPES #define SIZE 8 typedef enum {WHITE, BLACK} Color; typedef enum {PAWN, ROCK, KNIGHT, BISHOP, QUEEN, KING} PieceType; typedef struct { char row; char col; } Coord; typedef struct { Coord orig; Coord dest; } Move; typedef struct { Color color; PieceType type; } Piece; typedef struct { Color color; Piece* piece; } Square; typedef Square** Board; #endif