aboutsummaryrefslogtreecommitdiff
path: root/src/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/board.h')
-rw-r--r--src/board.h21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/board.h b/src/board.h
index dc1995a..e0acd1f 100644
--- a/src/board.h
+++ b/src/board.h
@@ -3,15 +3,9 @@
#define BOARD_UNITS BOARD_ROW_UNITS * BOARD_ROW_UNITS
-char EMPTY = ' ';
-
-int neighbor_increments[] = {
- - BOARD_ROW_UNITS,
- 1,
- BOARD_ROW_UNITS,
- - 1
-};
-
+/* constants */
+const char EMPTY = ' ';
+const int NEIGHBOR_INCREMENTS[] = { -BOARD_ROW_UNITS, 1, BOARD_ROW_UNITS, -1 };
/* structs */
typedef struct {
@@ -28,14 +22,11 @@ typedef struct {
/* board */
void initialize_board(BoardUnit* board);
-void print_board(BoardUnit* board);
-void write_board(BoardUnit* board, char* filename);
-void read_board(BoardUnit* board, char* filename);
-
-/* moves */
-int is_allowed_placement(Tile tile, int index, BoardUnit* board);
int translate_coordinate(int index);
int is_center_index(int index);
+
+/* tiles */
+int is_allowed_placement(Tile tile, int index, BoardUnit* board);
int place_tile(Tile tile, int index, BoardUnit* board, int force);
/* structures */