TOUT MARRRRRCHE!!!
This commit is contained in:
@@ -291,15 +291,14 @@ void afficherFinMatch(string grid[][LARGTIC], int gagnant, int nbJoueurs) {
|
|||||||
|
|
||||||
int partieNulle(string grid[][LARGTIC], int compteur) {
|
int partieNulle(string grid[][LARGTIC], int compteur) {
|
||||||
int max = LARGTIC * LARGTIC;
|
int max = LARGTIC * LARGTIC;
|
||||||
|
int temp = gagnant;
|
||||||
if (compteur == max) {
|
if (compteur == max) {
|
||||||
gagnant = 3;
|
gagnant = 3;
|
||||||
return gagnant;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
gagnant = 1;
|
gagnant = temp;
|
||||||
return gagnant;
|
|
||||||
}
|
}
|
||||||
|
return gagnant;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Joueur
|
// Joueur
|
||||||
@@ -354,7 +353,6 @@ void tourJoueur(string grid[][LARGTIC], int joueur) {
|
|||||||
//1 joueur
|
//1 joueur
|
||||||
void jeuUnJoueur(string grid[][LARGTIC]) {
|
void jeuUnJoueur(string grid[][LARGTIC]) {
|
||||||
bool fin;
|
bool fin;
|
||||||
int gagnant = 1;
|
|
||||||
int nbJoueurs = 1;
|
int nbJoueurs = 1;
|
||||||
int compteur = 0;
|
int compteur = 0;
|
||||||
|
|
||||||
@@ -394,7 +392,6 @@ void tourOrdi(string grid[][LARGTIC]) {
|
|||||||
//2 joueurs
|
//2 joueurs
|
||||||
void jeuDeuxJoueurs(string grid[][LARGTIC]) {
|
void jeuDeuxJoueurs(string grid[][LARGTIC]) {
|
||||||
bool fin;
|
bool fin;
|
||||||
int gagnant = 1;
|
|
||||||
int nbJoueurs = 2;
|
int nbJoueurs = 2;
|
||||||
int compteur = 0;
|
int compteur = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user