This commit is contained in:
Lea
2025-12-05 09:26:59 -05:00
2 changed files with 2 additions and 3 deletions

View File

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

View File

@@ -24,7 +24,7 @@ void afficherImageMenu(std::fstream& monFlux);
//G<>n<EFBFBD>ral
void afficherImageTableau(std::string grid[][LARGTIC], std::string style);
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);
//1 joueur