Lea #1

Merged
lea merged 2 commits from Lea into main 2025-11-28 10:00:47 -05:00
2 changed files with 5 additions and 15 deletions
Showing only changes of commit 3ac1c10f8a - Show all commits

View File

@@ -339,6 +339,7 @@ void tourOrdi(string grid[][LARGTIC]) {
vertical = rand() % (3); vertical = rand() % (3);
horizontal = rand() % (3); horizontal = rand() % (3);
} while (grid[vertical][horizontal] != ""); } while (grid[vertical][horizontal] != "");
grid[vertical][horizontal] = iconJ2; grid[vertical][horizontal] = iconJ2;
afficherImageTableau(grid, style); afficherImageTableau(grid, style);
} }

View File

@@ -23,28 +23,17 @@ int main() {
switch (choix) { switch (choix) {
case 'A': case 'A':
if (theme == true) { system("cls");
system("cls"); jeuUnJoueur(grid);
jeuUnJoueur(grid);
}
else {
cout << "\n\nVeuillez choisir un theme d'abord.";
}
break; break;
case 'B': case 'B':
if (theme == true) { system("cls");
system("cls"); jeuDeuxJoueurs(grid);
jeuDeuxJoueurs(grid);
}
else {
cout << "\n\nVeuillez choisir un theme d'abord.";
}
break; break;
case 'C': case 'C':
changerLeTheme(theme); changerLeTheme(theme);
theme = true;
break; break;
case 'Q': case 'Q':