Merge branch 'main' of https://gitea.zkd.ca/Dev_Web/TicTacToe
This commit is contained in:
@@ -87,7 +87,11 @@ void afficherImageMenu(std::fstream& monFlux) {
|
||||
|
||||
//G<>n<EFBFBD>ral (plusieurs options)
|
||||
void initTab(string grid[][LARGTIC]) {
|
||||
|
||||
for (int i = 0; i < LARGTIC; i++) {
|
||||
for (int j = 0; j < LARGTIC; i++) {
|
||||
grid[i][j] = " ";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void afficherImageTableau(std::string grid[][LARGTIC]) {
|
||||
@@ -268,10 +272,12 @@ void jeuUnJoueur(string grid[][LARGTIC]) {
|
||||
tourJoueur(grid, 1);
|
||||
gagnant = 1;
|
||||
fin = verifFinMatch(grid);
|
||||
tourOrdi(grid);
|
||||
gagnant = 2;
|
||||
system("PAUSE>0");
|
||||
fin = verifFinMatch(grid);
|
||||
if (fin != true) {
|
||||
tourOrdi(grid);
|
||||
gagnant = 2;
|
||||
system("PAUSE>0");
|
||||
fin = verifFinMatch(grid);
|
||||
}
|
||||
} while (fin != true);
|
||||
afficherFinMatch(grid, gagnant, nbJoueurs);
|
||||
}
|
||||
@@ -295,7 +301,7 @@ void jeuDeuxJoueurs(string grid[][LARGTIC]) {
|
||||
int gagnant;
|
||||
int nbJoueurs = 2;
|
||||
|
||||
cout << endl << "Deux joueurs a ete choisi. Les tours seront l'un a la suite de l'autre." << endl << endl;
|
||||
cout << "\nDeux joueurs a ete choisi. Les tours seront l'un a la suite de l'autre.\n\n";
|
||||
|
||||
do {
|
||||
tourJoueur(grid, 1);
|
||||
|
||||
Reference in New Issue
Block a user