diff --git a/TicTacToe/0 b/TicTacToe/0 index 4588032..6fe9972 100644 --- a/TicTacToe/0 +++ b/TicTacToe/0 @@ -1 +1 @@ -Appuyez sur une touche pour continuer... +Press any key to continue . . . diff --git a/TicTacToe/fonctions.cpp b/TicTacToe/fonctions.cpp index 3b20d75..60f86a2 100644 --- a/TicTacToe/fonctions.cpp +++ b/TicTacToe/fonctions.cpp @@ -173,7 +173,7 @@ void tourJoueur(string grid[][LARGTIC], int joueur) { cout << "\nEntrez une coordonnee horizontale : "; cin >> horizontale; - while (grid[verticale][horizontale] == ICONJ1 || grid[verticale][horizontale] == ICONJ2) { + while (grid[verticale - 1][horizontale - 1] == ICONJ1 || grid[verticale - 1][horizontale - 1] == ICONJ2) { cout << "\n\nVeuillez choisir une case vide.\n" << "\n\nEntrez une coordonnee verticale : "; cin >> verticale;