blob: 07e63d3e4d0d9a8dc1e803b076e6239cd85ca1bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#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 {
Color color;
PieceType type;
} Piece;
typedef struct {
Color color;
Piece* piece;
} Square;
typedef Square** Board;
#endif
|