Compare commits

..

3 Commits

Author SHA1 Message Date
Sunny
bb6d8afaba There 2025-11-26 19:55:59 -05:00
Sunny
8d6f673653 Eum scuse, si quelque chose chie, c'est ma faute sur celle-là ._. 2025-11-26 19:54:33 -05:00
Sunny
ad2ae96bb1 Je sais pas 2025-11-26 19:48:27 -05:00
3 changed files with 9 additions and 8 deletions

View File

@@ -1 +1 @@
Appuyez sur une touche pour continuer...
Press any key to continue . . .

View File

@@ -15,8 +15,8 @@ BUT : Fichier de fonctions Tic Tac Toe
using namespace std;
extern const int LARGTIC;
string iconJ1 = "X";
string iconJ2 = "O";
string ICONJ1 = "X";
string ICONJ2 = "O";
string style = "themes/themeSea.txt";
int codeConsole = 0;
@@ -199,7 +199,7 @@ void tourJoueur(string grid[][LARGTIC], int joueur) {
verticale -= 1;
horizontale -= 1;
while (grid[verticale][horizontale] == iconJ1 || grid[verticale][horizontale] == iconJ2) {
while (grid[verticale][horizontale] == ICONJ1 || grid[verticale][horizontale] == ICONJ2) {
// V<>RIFIER LE CIN D'ERREUR!!!!!
cout << "\n\nVeuillez choisir une case vide.\n"
<< "\n\nEntrez une coordonnee verticale : ";
@@ -212,10 +212,10 @@ void tourJoueur(string grid[][LARGTIC], int joueur) {
}
if (joueur == 1) {
grid[verticale][horizontale] = iconJ1;
grid[verticale][horizontale] = ICONJ1;
}
else {
grid[verticale][horizontale] = iconJ2;
grid[verticale][horizontale] = ICONJ2;
}
}
@@ -330,7 +330,7 @@ void tourOrdi(string grid[][LARGTIC]) {
vertical = rand() % (3);
horizontal = rand() % (3);
} while (grid[vertical][horizontal] != "");
grid[vertical][horizontal] = iconJ2;
grid[vertical][horizontal] = ICONJ2;
afficherImageTableau(grid, style);
}

View File

@@ -45,7 +45,8 @@ int main() {
break;
case 'C':
changerLeTheme(theme);
changerLeTheme();
theme = true;
break;
case 'Q':