From 45707bbab1a64f7142cdf93cf842ee92089828fb Mon Sep 17 00:00:00 2001 From: Sunny Date: Wed, 26 Nov 2025 11:18:07 -0500 Subject: [PATCH] Condition theme --- TicTacToe/main.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/TicTacToe/main.cpp b/TicTacToe/main.cpp index 360540e..3dc813b 100644 --- a/TicTacToe/main.cpp +++ b/TicTacToe/main.cpp @@ -25,15 +25,23 @@ 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':