From d4d337a648cd21dc2c8dd7835e52e4f1a8ad83f5 Mon Sep 17 00:00:00 2001 From: Lea Date: Fri, 28 Nov 2025 10:20:16 -0500 Subject: [PATCH] =?UTF-8?q?Ajout=20des=20trucs=20=C3=A0=20terminer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TicTacToe/fonctions.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/TicTacToe/fonctions.cpp b/TicTacToe/fonctions.cpp index bd9a1f5..1f5732d 100644 --- a/TicTacToe/fonctions.cpp +++ b/TicTacToe/fonctions.cpp @@ -239,6 +239,9 @@ bool verifFinMatch(std::string grid[][LARGTIC]) { fin = fin && (grid[i][i] == grid[i - 1][i - 1]); } } + + + if (fin == true) { return fin; } @@ -318,6 +321,8 @@ void jeuUnJoueur(string grid[][LARGTIC]) { cout << "Un joueur a ete choisi. Le joueur joue en premier."; + //AJOUTER UN COMPTEUR DE TOURS POUR LES EXAEQUO!!!!!! + do { tourJoueur(grid, 1); gagnant = 1;