diff --git a/TicTacToe/fonctions.cpp b/TicTacToe/fonctions.cpp index c45a346..f6d7dd7 100644 --- a/TicTacToe/fonctions.cpp +++ b/TicTacToe/fonctions.cpp @@ -53,7 +53,7 @@ void afficherMenu(char& choix) { << "----------------------------------" << endl << "A) 1 joueur" << endl << "B) 2 joueurs" << endl - << "C) Changer le style du jeu" << endl + << "C) Choisir un theme" << endl << "Q) Quitter" << endl << endl << "Quel est votre choix? "; choix = toupper(_getche()); @@ -86,7 +86,6 @@ void afficherImageMenu(std::fstream& monFlux) { } //Général (plusieurs options) - void afficherImageTableau(std::string grid[][LARGTIC], std::string style) { SetConsoleOutputCP(CP_UTF8); string emoteUp, diff --git a/TicTacToe/fonctions.h b/TicTacToe/fonctions.h index 73d63d2..1b58e2c 100644 --- a/TicTacToe/fonctions.h +++ b/TicTacToe/fonctions.h @@ -34,8 +34,5 @@ void tourOrdi(std::string grid[][LARGTIC]); //2 joueurs void jeuDeuxJoueurs(std::string grid[][LARGTIC]); -//Historique -void historiqueDesScores(); - //Changer le thème void changerLeTheme(); \ No newline at end of file diff --git a/TicTacToe/main.cpp b/TicTacToe/main.cpp index e1cc9cb..3dc813b 100644 --- a/TicTacToe/main.cpp +++ b/TicTacToe/main.cpp @@ -16,6 +16,7 @@ const string ICONJ2 = "O"; int main() { srand(time(NULL)); + bool theme = false; char choix; string grid[LARGTIC][LARGTIC]; @@ -24,17 +25,28 @@ int main() { switch (choix) { case 'A': - system("cls"); - jeuUnJoueur(grid); + if (theme == true) { + system("cls"); + jeuUnJoueur(grid); + } + else { + cout << "\n\nVeuillez choisir un theme d'abord."; + } break; case 'B': - system("cls"); - jeuDeuxJoueurs(grid); + if (theme == true) { + system("cls"); + jeuDeuxJoueurs(grid); + } + else { + cout << "\n\nVeuillez choisir un theme d'abord."; + } break; case 'C': changerLeTheme(); + theme = true; break; case 'Q':