diff --git a/TicTacToe/fonctions.cpp b/TicTacToe/fonctions.cpp index 74e119f..2ff3f7a 100644 --- a/TicTacToe/fonctions.cpp +++ b/TicTacToe/fonctions.cpp @@ -275,6 +275,18 @@ void afficherFinMatch(string grid[][LARGTIC], int gagnant, int nbJoueurs) { cout << "\n\nPartie nulle!"; } } + + else if (nbJoueurs == 2){ + if (gagnant == 1) { + cout << "\n\nJoueur 1 a gagne la partie!"; + } + else if (gagnant == 2) { + cout << "\n\nJoueur 2 a gagne la partie!"; + } + else { + cout << "\n\nPartie nulle!"; + } + } } int partieNulle(string grid[][LARGTIC], int compteur) { @@ -283,6 +295,7 @@ int partieNulle(string grid[][LARGTIC], int compteur) { gagnant = 3; return gagnant; } + else { gagnant = 1; return gagnant;