diff options
Diffstat (limited to 'src/board.h')
-rw-r--r-- | src/board.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/board.h b/src/board.h new file mode 100644 index 0000000..442b03d --- /dev/null +++ b/src/board.h @@ -0,0 +1,21 @@ +#define TILE_SIZE 5 +#define BOARD_WIDTH 6 +#define BOARD_BYTES TILE_SIZE * (BOARD_WIDTH * BOARD_WIDTH) + +int direction_increments[] = { + - TILE_SIZE * BOARD_WIDTH + 2, + TILE_SIZE + 2, + TILE_SIZE * BOARD_WIDTH - 2, + - TILE_SIZE - 2 +}; + +// Board +void initialize_board(char* board); + +void print_board(char* board); + +// Moves +int check_allowed_tile(char* tile, int position, char* board); + +void place_tile(char* tile, int position, char* board); + |