This commit is contained in:
Sunny
2025-11-26 20:02:38 -05:00
parent bb6d8afaba
commit fcd05842ed

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,23 +132,13 @@ 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;
}
else if (grid[k][i] == "O") {
cout << emoteJ2;
}
else {
cout << " ";
}
cout << " ";
cout << "|" << " " << grid[k][i] << " ";
}
cout << " |" << endl << " ";
@@ -156,7 +147,6 @@ void afficherImageTableau(std::string grid[][LARGTIC], std::string style) {
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";