diff --git a/TicTacToe/fonctions.cpp b/TicTacToe/fonctions.cpp index 1f5732d..305f427 100644 --- a/TicTacToe/fonctions.cpp +++ b/TicTacToe/fonctions.cpp @@ -24,6 +24,8 @@ fstream monFlux; HANDLE hconsole = GetStdHandle(STD_OUTPUT_HANDLE); char carre = 219, choix; +//À faire : égalité et entrer de coordonnée + //Fichiers void ouvrirFichier(std::fstream& monFlux, std::string nomFichier) { monFlux.open(nomFichier, ios::in); @@ -294,7 +296,7 @@ void tourJoueur(string grid[][LARGTIC], int joueur) { horizontale -= 1; while (grid[verticale][horizontale] == iconJ1 || grid[verticale][horizontale] == iconJ2) { - // VÉRIFIER LE CIN D'ERREUR!!!!! + cout << "\n\nVeuillez choisir une case vide.\n" << "\n\nEntrez une coordonnee verticale : "; cin >> verticale; @@ -488,4 +490,4 @@ void changerLeTheme() { break; } } while (choix != 'Q'); -} +} \ No newline at end of file