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