diff --git a/TicTacToe/0 b/TicTacToe/0 index 6fe9972..4588032 100644 --- a/TicTacToe/0 +++ b/TicTacToe/0 @@ -1 +1 @@ -Press any key to continue . . . +Appuyez sur une touche pour continuer... diff --git a/TicTacToe/fonctions.cpp b/TicTacToe/fonctions.cpp index 16cb0a6..c0c6b56 100644 --- a/TicTacToe/fonctions.cpp +++ b/TicTacToe/fonctions.cpp @@ -368,13 +368,14 @@ void jeuDeuxJoueurs(string grid[][LARGTIC]) { void changerLeTheme(bool& theme) { string grid[LARGTIC][LARGTIC]; system("cls"); + cout << endl << "Changer le theme du jeu Tic Tac Toe" << endl; do { - cout << endl << "Changer le theme du jeu Tic Tac Toe" << endl - << "Options des styles: " << "\n-------------------------------------" - << "\nA) Ocean" + cout << endl + << "Options des styles: " << "\n\n-------------------------------------" + << "\nA) Par defaut" << "\nB) Fantaisie" << "\nC) Espace" - << "\nD) Animaux" << "\nE) Defaut" << "\nQ) Revenir en arriere" - << "\nChoisir une option: "; + << "\nD) Animaux" << "\nE) Ocean" << "\nQ) Revenir en arriere" + << "\n\nChoisir une option: "; choix = toupper(_getche()); cout << endl; @@ -383,19 +384,20 @@ void changerLeTheme(bool& theme) { } switch (choix) { case 'A': - style = "themes/themeSea.txt"; + style = "themes/themeDefaut.txt"; afficherImageTableau(grid, style); cout << "\n\nVoulez vous utiliser ce theme? "; choix = toupper(_getche()); if (choix == 'O') { - style = "themes/themeSea.txt"; + style = "themes/themeDefaut.txt"; + cout << "\nTheme choisi. \n"; } else { style = "themes/themeDefaut.txt"; - cout << "Le theme par defaut sera choisi."; + cout << "\nLe theme par defaut sera quand meme choisi."; } break; @@ -409,11 +411,12 @@ void changerLeTheme(bool& theme) { if (choix == 'O') { style = "themes/themeFantasy.txt"; + cout << "\nTheme choisi. \n"; } else { style = "themes/themeDefaut.txt"; - cout << "Le theme par defaut sera choisi."; + cout << "\nLe theme par defaut sera choisi."; } break; @@ -426,11 +429,12 @@ void changerLeTheme(bool& theme) { if (choix == 'O') { style = "themes/themeEspace.txt"; + cout << "\nTheme choisi. \n"; } else { style = "themes/themeDefaut.txt"; - cout << "Le theme par defaut sera choisi."; + cout << "\nLe theme par defaut sera choisi."; } break; @@ -443,36 +447,40 @@ void changerLeTheme(bool& theme) { if (choix == 'O') { style = "themes/themeAnimaux.txt"; + cout << "\nTheme choisi. \n"; } else { style = "themes/themeDefaut.txt"; - cout << "Le theme par defaut sera choisi."; + cout << "\nLe theme par defaut sera choisi."; } break; case 'E': - style = "themes/themeDefaut.txt"; + style = "themes/themeSea.txt"; afficherImageTableau(grid, style); cout << "\n\nVoulez vous utiliser ce theme? "; choix = toupper(_getche()); if (choix == 'O') { - style = "themes/themeDefaut.txt"; + style = "themes/themeSea.txt"; + cout << "\nTheme choisi. \n"; } else { style = "themes/themeDefaut.txt"; - cout << "Le theme par defaut sera quand meme choisi."; + cout << "\nLe theme par defaut sera choisi.\n"; } break; case 'Q': + cout << "\n\nRetour au menu principal"; + system("PAUSE>nul"); break; default: - cout << "\nChoisir une option valide. \n"; + cout << "\n\nChoisir une option valide. \n"; break; } } while (choix != 'Q');