création d'une branche secondaire (je pense que ç'a marché)
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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':
|
||||||
|
|||||||
Reference in New Issue
Block a user