Compare commits

...

2 Commits

Author SHA1 Message Date
Sunny
1f71c6d5bb Ok so tout bug de mon bort so je vais juste attendre à vendredi ._. 2025-11-26 20:03:44 -05:00
Sunny
fcd05842ed What 2025-11-26 20:02:38 -05:00
2 changed files with 11 additions and 27 deletions

View File

@@ -90,15 +90,15 @@ void afficherImageTableau(std::string grid[][LARGTIC], std::string style) {
SetConsoleOutputCP(CP_UTF8);
string emoteUp,
emoteDown,
emoteJ1,
emoteJ2;
iconJ1,
iconJ2;
// Faire une fonction pour retenir le th<74>me s<>lectionn<6E> par le joueur!!!!
ouvrirFichier(monFlux, style);
if (monFlux) {
while (!monFlux.eof()) {
monFlux >> emoteUp >> emoteDown >> emoteJ1 >> emoteJ2;
monFlux >> emoteUp >> emoteDown >> ICONJ1 >> ICONJ2;
}
monFlux.close();
cout << endl;
@@ -109,9 +109,10 @@ void afficherImageTableau(std::string grid[][LARGTIC], std::string style) {
}
fermerFichier(monFlux);
// Lignes de code pour faire afficher le Tic Tac Toe une fois que les symboles ont <20>t<EFBFBD> ajout<75>s
cout << "Joueur 1: " << emoteJ1 << " Joueur 2: " << emoteJ2 << endl << endl;
grid[0][0] = ICONJ1;
grid[0][1] = ICONJ2;
// Lignes de code pour faire afficher le Tic Tac Toe une fois que les symboles ont <20>t<EFBFBD> ajout<75>s
cout << " ";
for (int i = 0; i < LARGTIC; i++) {
cout << " " << i + 1 << " ";
@@ -131,32 +132,21 @@ void afficherImageTableau(std::string grid[][LARGTIC], std::string style) {
for (int j = 0; j < 3; j++) {
cout << " ";
}
cout << " ";
}
cout << "|" << endl << " " << k + 1 << " ";
for (int i = 0; i < LARGTIC; i++) {
cout << "|" << " " ;
if (grid[k][i] == "X") {
cout << emoteJ1;
cout << "|" << " " << grid[k][i] << " ";
}
else if (grid[k][i] == "O") {
cout << emoteJ2;
}
else {
cout << " ";
}
cout << " ";
}
cout << "|" << endl << " ";
cout << " |" << endl << " ";
for (int i = 0; i < LARGTIC; i++) {
cout << "|";
for (int j = 0; j < 3; j++) {
cout << " ";
}
cout << " ";
}
cout << "|" << endl << " ";
@@ -206,9 +196,6 @@ void tourJoueur(string grid[][LARGTIC], int joueur) {
cin >> verticale;
cout << "\nEntrez une coordonnee horizontale : ";
cin >> horizontale;
verticale--;
horizontale--;
}
if (joueur == 1) {
@@ -356,7 +343,7 @@ void jeuDeuxJoueurs(string grid[][LARGTIC]) {
}
//Changer le th<74>me
void changerLeTheme(bool &theme) {
void changerLeTheme() {
string grid[LARGTIC][LARGTIC];
system("cls");
do {
@@ -368,9 +355,6 @@ void changerLeTheme(bool &theme) {
choix = toupper(_getche());
cout << endl;
if (choix >= 'A' && choix <= 'D') {
theme = true;
}
switch (choix) {
case 'A':
style = "themes/themeSea.txt";

View File

@@ -35,5 +35,5 @@ void tourOrdi(std::string grid[][LARGTIC]);
void jeuDeuxJoueurs(std::string grid[][LARGTIC]);
//Changer le th<74>me
void changerLeTheme(bool& theme);
void changerLeTheme();