diff --git a/TicTacToe/0 b/TicTacToe/0 index 4588032..ba64bff 100644 --- a/TicTacToe/0 +++ b/TicTacToe/0 @@ -1 +1 @@ -Appuyez sur une touche pour continuer... +Press any key to continue . . . \ No newline at end of file diff --git a/TicTacToe/fonctions.cpp b/TicTacToe/fonctions.cpp index aef3077..e9d19a1 100644 --- a/TicTacToe/fonctions.cpp +++ b/TicTacToe/fonctions.cpp @@ -15,11 +15,9 @@ BUT : Fichier de fonctions Tic Tac Toe using namespace std; extern const int LARGTIC; - string ICONJ1 = "X"; - string ICONJ2 = "O"; - string ICONJ1 = "X"; - string ICONJ2 = "O"; - string style; +string ICONJ1 = "X"; +string ICONJ2 = "O"; +string style; int codeConsole = 0; fstream monFlux; @@ -281,7 +279,7 @@ void jeuUnJoueur(string grid[][LARGTIC]) { int gagnant; int nbJoueurs = 1; - cout << "\nUn joueur a ete choisi. Le joueur joue en premier.\n\n"; + cout << "Un joueur a ete choisi. Le joueur joue en premier."; do { tourJoueur(grid, 1); @@ -347,8 +345,7 @@ void changerLeTheme() { choix = toupper(_getche()); cout << endl; - do { - switch (choix) { + switch (choix) { case 'A': style = "themes/themeSea.txt"; afficherImageTableau(grid, style); @@ -375,6 +372,6 @@ void changerLeTheme() { default: cout << "\nChoisir une option valide. \n"; - } - } while (choix != 'Q'); + break; + } } \ No newline at end of file