Condition theme
This commit is contained in:
@@ -25,15 +25,23 @@ 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':
|
||||||
|
|||||||
Reference in New Issue
Block a user