DERNIER COMMIT DE LA JOURNÉE

This commit is contained in:
Lea
2025-11-26 11:22:59 -05:00
3 changed files with 17 additions and 9 deletions

View File

@@ -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<EFBFBD>ral (plusieurs options)
void afficherImageTableau(std::string grid[][LARGTIC], std::string style) {
SetConsoleOutputCP(CP_UTF8);
string emoteUp,

View File

@@ -34,8 +34,5 @@ void tourOrdi(std::string grid[][LARGTIC]);
//2 joueurs
void jeuDeuxJoueurs(std::string grid[][LARGTIC]);
//Historique
void historiqueDesScores();
//Changer le th<74>me
void changerLeTheme();

View File

@@ -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':
if (theme == true) {
system("cls");
jeuUnJoueur(grid);
}
else {
cout << "\n\nVeuillez choisir un theme d'abord.";
}
break;
case 'B':
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':