Merge branch 'main' of https://gitea.zkd.ca/Dev_Web/TicTacToe
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user