X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fmain.c;h=99ed64ea5837c849efdd82c0dc6bbed8e5e21c28;hb=d7813f1e27e72b358e7e616e132b63f35ae7ef29;hp=3ed7991b2229685cdc40c975a1937b38f3709f32;hpb=3243371edb8b286cf832c512e63f302dad6e1de2;p=Project_algorithmic_C.git diff --git a/src/main.c b/src/main.c index 3ed7991..99ed64e 100644 --- a/src/main.c +++ b/src/main.c @@ -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) {