+
+bool is_valid_input(int y, int x, unsigned int pawn_array[board_size][board_size]) {
+
+ /* FIXME: separate the tests to permit to print explicit error messages */
+ if ((y > 0 && y < board_size + 1) && \
+ (x > 0 && x < board_size + 1) && \
+ is_box_type(y, x, pawn_array, empty)) {
+ return true;
+ } else {
+ return false;
+ }
+}
+
+bool is_board_full(unsigned int pawn_array[board_size][board_size]) {
+
+ for (unsigned int i = 1; i <= board_size; i++) {
+ for (unsigned int j = 1; j <= board_size; j++) {
+ if (is_box_type(i, j, pawn_array , empty)) {
+ return false;
+ }
+ }
+ }
+ return true;
+}
+
+void status_pawn(int y, int x, unsigned int pawn_array[board_size][board_size]) {
+
+}
+
+bool is_legal_box(int y, int x, int player, unsigned int pawn_array[board_size][board_size]) {
+
+}
+
+bool reverse_box(unsigned int pawn_array[board_size][board_size]) {
+
+}