Lea #1
@@ -339,6 +339,7 @@ void tourOrdi(string grid[][LARGTIC]) {
|
||||
vertical = rand() % (3);
|
||||
horizontal = rand() % (3);
|
||||
} while (grid[vertical][horizontal] != "");
|
||||
|
||||
grid[vertical][horizontal] = iconJ2;
|
||||
afficherImageTableau(grid, style);
|
||||
}
|
||||
|
||||
@@ -23,28 +23,17 @@ 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);
|
||||
theme = true;
|
||||
break;
|
||||
|
||||
case 'Q':
|
||||
|
||||
Reference in New Issue
Block a user