diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/coordinate.h | 12 | ||||
-rw-r--r-- | include/types.h | 5 |
2 files changed, 17 insertions, 0 deletions
diff --git a/include/coordinate.h b/include/coordinate.h new file mode 100644 index 0000000..52e7cf0 --- /dev/null +++ b/include/coordinate.h @@ -0,0 +1,12 @@ +#ifndef _COORD +#define _COORD + +#include "types.h" + +/* + * This functions will NOT alloc memory for the Coord pointer + */ +int coord_init(Coord*, char, char); +int coord_init_from_str(Coord*, char*); + +#endif 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; |