diff --git a/minimax.py b/minimax.py index d7b02d8..1d62b55 100644 --- a/minimax.py +++ b/minimax.py @@ -227,7 +227,7 @@ class Morpion(): self._placementPiece(self.joueurB, self._demandeCaseB()) # on place la pièce du joueur là où il veut self.joueurActuel = self.joueurA self.afficher() # affichage du plateau final - if self._egalite(): + if self._egalite() and len(self.gagnant) == 0: print(f"😬 Partie terminée, {self.gras(f'égalité parfaite')}.") else: print(f"🎉 Partie terminée, le {self.gras(f'joueur {self.gagnant} a gagné')} !")