From f7ae8f438c24c715dd562ecee78f5d0cbe3abab2 Mon Sep 17 00:00:00 2001 From: Sunny Date: Fri, 28 Nov 2025 08:47:43 -0500 Subject: [PATCH 1/2] Should be the same, but meh --- TicTacToe/fonctions.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/TicTacToe/fonctions.h b/TicTacToe/fonctions.h index 3519995..961ab29 100644 --- a/TicTacToe/fonctions.h +++ b/TicTacToe/fonctions.h @@ -22,7 +22,6 @@ void afficherImageMenu(std::fstream& monFlux); //Général void afficherImageTableau(std::string grid[][LARGTIC], std::string style); -void changerLeTheme(); void tourJoueur(std::string grid[][LARGTIC], int joueur); //pour savoir quel icon utiliser bool verifFinMatch(std::string grid[][LARGTIC]); void afficherFinMatch(std::string grid[][LARGTIC], int gagnant, int nbJoueurs); @@ -35,5 +34,4 @@ void tourOrdi(std::string grid[][LARGTIC]); void jeuDeuxJoueurs(std::string grid[][LARGTIC]); //Changer le thème -void changerLeTheme(bool &theme); - +void changerLeTheme(bool& theme); \ No newline at end of file From 8fa7df8845603e14a3dad6ba61254c40a211817b Mon Sep 17 00:00:00 2001 From: Sunny Date: Fri, 28 Nov 2025 08:54:55 -0500 Subject: [PATCH 2/2] =?UTF-8?q?fonction=20initGrid(grid)=20mais=20=C3=A7a?= =?UTF-8?q?=20marche=20soso?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TicTacToe/fonctions.cpp | 8 ++++++++ TicTacToe/fonctions.h | 1 + 2 files changed, 9 insertions(+) diff --git a/TicTacToe/fonctions.cpp b/TicTacToe/fonctions.cpp index 00743fa..0e4ce95 100644 --- a/TicTacToe/fonctions.cpp +++ b/TicTacToe/fonctions.cpp @@ -86,6 +86,14 @@ void afficherImageMenu(std::fstream& monFlux) { } //Général (plusieurs options) +void initGrid(string grid[][LARGTIC]) { + for (int i = 0; i < 3; i++) { + for (int j = 0; j < 3; j++) { + grid[i][j] = ""; + } + } +} + void afficherImageTableau(std::string grid[][LARGTIC], std::string style) { SetConsoleOutputCP(CP_UTF8); string emoteUp, diff --git a/TicTacToe/fonctions.h b/TicTacToe/fonctions.h index 961ab29..4ffdd05 100644 --- a/TicTacToe/fonctions.h +++ b/TicTacToe/fonctions.h @@ -17,6 +17,7 @@ void ouvrirFichier(std::fstream& monFlux, std::string nomFichier); void fermerFichier(std::fstream& monFlux); //Menu +void initGrid(std::string grid[][LARGTIC]); void afficherMenu(char& choix); void afficherImageMenu(std::fstream& monFlux);