diff options
author | Raúl Benencia <rul@kalgan.cc> | 2015-03-28 12:15:30 -0300 |
---|---|---|
committer | Raúl Benencia <rul@kalgan.cc> | 2015-03-28 12:15:30 -0300 |
commit | 4d5958f78c5741031f552b26cd0cb1da5fdab18d (patch) | |
tree | 789d01c16ee851bdb18db60690a7b490ef166d08 /include/types.h | |
parent | 4b40fabf0d76737de4471527bb8e27128f8f1ad4 (diff) |
add a Coord type and init functions
Diffstat (limited to 'include/types.h')
-rw-r--r-- | include/types.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/types.h b/include/types.h index 7618916..07e63d3 100644 --- a/include/types.h +++ b/include/types.h @@ -7,6 +7,11 @@ 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; |