Add the basic code to make othello playable without any rule checks
[Project_algorithmic_C.git] / lib / othello.h
index e590b02d9790aa014ee4e2e248069c60c0d8dc2b..628f8e1c1a3a706c62d48b65777e0aefb332a5cb 100644 (file)
 #ifndef OTHELLO_H
 #define OTHELLO_H
 
+#include "constants.h"
+
+/* FIXME: declare and initialize the array here */
+//unsigned int pawns[board_size][board_size];
+
+unsigned int current_player(unsigned int round_count);
+
+int** init_pawns(unsigned int pawn_array[board_size][board_size]);
+
+bool is_box_type(int y, int x, unsigned int pawn_array[board_size][board_size], unsigned int type);
+unsigned int get_box_value(int y, int x, unsigned int pawn_array[board_size][board_size]);
+int** set_pawn(int y, int x, unsigned int type, unsigned int pawn_array[board_size][board_size]);
+
+unsigned int count_pawn_type(unsigned int pawn_array[board_size][board_size], unsigned int type);
+
 #endif /* OTHELLO_H */