Start functions documentation.
[Project_algorithmic_C.git] / src / main.c
index 3ed7991b2229685cdc40c975a1937b38f3709f32..99ed64ea5837c849efdd82c0dc6bbed8e5e21c28 100644 (file)
@@ -85,6 +85,7 @@ int main() {
         int y;
         char x_char;
         bool input_ok = false;
+        bool first_run = true;
         unsigned int nb_pawns_reversed = 0;
         do {
             y = 0;
@@ -109,7 +110,7 @@ int main() {
         /* here are all the end of the game conditions */
         if (is_board_full(pawns)) {
             print_board(board_center_y, board_center_x);
-            /* print the updated pawns before exiting */
+            /* print the updated pawns array before exiting */
             print_pawns(board_center_y, board_center_x, pawns);
             unsigned int winner = eval_winner(nb_white, nb_black);
             if (winner != 0) {