From f60ebf6b42b05f940904aee78415142dba4008eb Mon Sep 17 00:00:00 2001 From: Lea Date: Fri, 28 Nov 2025 08:39:24 -0500 Subject: [PATCH] =?UTF-8?q?Revert=20vers=20une=20phase=20qui=20fonctionne?= =?UTF-8?q?=20th=C3=A9oriquement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TicTacToe/fonctions.cpp | 5 +++-- TicTacToe/main.cpp | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/TicTacToe/fonctions.cpp b/TicTacToe/fonctions.cpp index eefaf4a..dcda946 100644 --- a/TicTacToe/fonctions.cpp +++ b/TicTacToe/fonctions.cpp @@ -111,7 +111,8 @@ void afficherImageTableau(std::string grid[][LARGTIC], std::string style) { // Lignes de code pour faire afficher le Tic Tac Toe une fois que les symboles ont été ajoutés cout << "Joueur 1: " << emoteJ1 << " Joueur 2: " << emoteJ2 << endl << endl; - + + // Lignes de code pour faire afficher le Tic Tac Toe une fois que les symboles ont été ajoutés cout << " "; for (int i = 0; i < LARGTIC; i++) { cout << " " << i + 1 << " "; @@ -140,7 +141,7 @@ void afficherImageTableau(std::string grid[][LARGTIC], std::string style) { cout << "|" << " " ; if (grid[k][i] == "X") { cout << emoteJ1; - } + } else if (grid[k][i] == "O") { cout << emoteJ2; } diff --git a/TicTacToe/main.cpp b/TicTacToe/main.cpp index b3863aa..32e08ba 100644 --- a/TicTacToe/main.cpp +++ b/TicTacToe/main.cpp @@ -46,6 +46,7 @@ int main() { case 'C': changerLeTheme(theme); + theme = true; break; case 'Q':