summaryrefslogtreecommitdiff
path: root/include/types.h
blob: 76189162bdd0897d7b3bdc7dac6bb7ed84cd2496 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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
nihil fit ex nihilo