La vérif verticale marche toujours pas et jsp comment faire la partie nulle ;-;

This commit is contained in:
Sunny
2025-12-05 08:40:19 -05:00
parent 763aba1a13
commit a10845eff2
2 changed files with 2 additions and 3 deletions

View File

@@ -17,6 +17,7 @@ using namespace std;
extern const int LARGTIC; extern const int LARGTIC;
string iconJ1 = "X"; string iconJ1 = "X";
string iconJ2 = "O"; string iconJ2 = "O";
int gagnant;
string style = "themes/themeDefaut.txt"; string style = "themes/themeDefaut.txt";
int codeConsole = 0; int codeConsole = 0;
@@ -182,7 +183,6 @@ void afficherImageTableau(std::string grid[][LARGTIC], std::string style) {
SetConsoleOutputCP(codeConsole); SetConsoleOutputCP(codeConsole);
} }
bool verifFinMatch(std::string grid[][LARGTIC]) { bool verifFinMatch(std::string grid[][LARGTIC]) {
bool fin = false; bool fin = false;
int max = LARGTIC * LARGTIC; int max = LARGTIC * LARGTIC;
@@ -190,7 +190,6 @@ bool verifFinMatch(std::string grid[][LARGTIC]) {
if (compteur == max) { if (compteur == max) {
return true; return true;
} }
else { else {
compteur++; compteur++;
// Valide horizontales // Valide horizontales

View File

@@ -24,7 +24,7 @@ void afficherImageMenu(std::fstream& monFlux);
//G<>n<EFBFBD>ral //G<>n<EFBFBD>ral
void afficherImageTableau(std::string grid[][LARGTIC], std::string style); void afficherImageTableau(std::string grid[][LARGTIC], std::string style);
void tourJoueur(std::string grid[][LARGTIC], int joueur); //pour savoir quel icon utiliser void tourJoueur(std::string grid[][LARGTIC], int joueur); //pour savoir quel icon utiliser
bool verifFinMatch(std::string grid[][LARGTIC]); bool verifFinMatch(std::string grid[][LARGTIC], int gagnant);
void afficherFinMatch(std::string grid[][LARGTIC], int gagnant, int nbJoueurs); void afficherFinMatch(std::string grid[][LARGTIC], int gagnant, int nbJoueurs);
//1 joueur //1 joueur