aboutsummaryrefslogtreecommitdiff
path: root/src/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/board.h')
-rw-r--r--src/board.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/board.h b/src/board.h
index d5fb2d0..ad46098 100644
--- a/src/board.h
+++ b/src/board.h
@@ -1,4 +1,4 @@
-#define BOARD_WIDTH 2
+#define BOARD_WIDTH 5
#define BOARD_ROW_BYTES ((BOARD_WIDTH * 2) + 1)
#define BOARD_BYTES BOARD_ROW_BYTES * BOARD_ROW_BYTES
@@ -18,15 +18,17 @@ void initialize_board(char* board);
void print_board(char* board);
// Moves
-int is_allowed_placement(char* tile, int position, char* board);
+int is_allowed_placement(char* tile, int index, char* board);
-int translate_coordinate(int position);
+int translate_coordinate(int index);
-int is_center_position(int position);
+int is_center_index(int index);
-int place_tile(char* tile, int position, char* board);
+int place_tile(char* tile, int index, char* board);
// Structures
-void traverse_structure(char id, int byte, char* board, char* structures);
+void traverse_structure(char id, int index, char* board, char* structures);
void create_structure_mask(char* board, char* structures);
+
+int evaluate_structure(int index, char* board, char* structures);