La vérif verticale marche toujours pas et jsp comment faire la partie nulle ;-;
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user