From 3ac1c10f8a3f7e5fbe38552f51a2a588c062280c Mon Sep 17 00:00:00 2001 From: Lea Date: Fri, 28 Nov 2025 09:42:12 -0500 Subject: [PATCH] =?UTF-8?q?cr=C3=A9ation=20d'une=20branche=20secondaire=20?= =?UTF-8?q?(je=20pense=20que=20=C3=A7'a=20march=C3=A9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TicTacToe/fonctions.cpp | 1 + TicTacToe/main.cpp | 19 ++++--------------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/TicTacToe/fonctions.cpp b/TicTacToe/fonctions.cpp index fe0ab2b..879baa0 100644 --- a/TicTacToe/fonctions.cpp +++ b/TicTacToe/fonctions.cpp @@ -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); } diff --git a/TicTacToe/main.cpp b/TicTacToe/main.cpp index f167b50..6e7d9e3 100644 --- a/TicTacToe/main.cpp +++ b/TicTacToe/main.cpp @@ -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."; - } + system("cls"); + jeuUnJoueur(grid); break; case 'B': - if (theme == true) { - system("cls"); - jeuDeuxJoueurs(grid); - } - else { - cout << "\n\nVeuillez choisir un theme d'abord."; - } + system("cls"); + jeuDeuxJoueurs(grid); break; case 'C': changerLeTheme(theme); - theme = true; break; case 'Q':