Compare commits
2 Commits
b627bfe215
...
b7dae93147
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b7dae93147 | ||
|
|
f60ebf6b42 |
@@ -109,8 +109,8 @@ void afficherImageTableau(std::string grid[][LARGTIC], std::string style) {
|
|||||||
}
|
}
|
||||||
fermerFichier(monFlux);
|
fermerFichier(monFlux);
|
||||||
|
|
||||||
grid[0][0] = ICONJ1;
|
// Lignes de code pour faire afficher le Tic Tac Toe une fois que les symboles ont <20>t<EFBFBD> ajout<75>s
|
||||||
grid[0][1] = ICONJ2;
|
cout << "Joueur 1: " << emoteJ1 << " Joueur 2: " << emoteJ2 << endl << endl;
|
||||||
|
|
||||||
// Lignes de code pour faire afficher le Tic Tac Toe une fois que les symboles ont <20>t<EFBFBD> ajout<75>s
|
// Lignes de code pour faire afficher le Tic Tac Toe une fois que les symboles ont <20>t<EFBFBD> ajout<75>s
|
||||||
cout << " ";
|
cout << " ";
|
||||||
@@ -137,10 +137,19 @@ void afficherImageTableau(std::string grid[][LARGTIC], std::string style) {
|
|||||||
|
|
||||||
|
|
||||||
for (int i = 0; i < LARGTIC; i++) {
|
for (int i = 0; i < LARGTIC; i++) {
|
||||||
cout << "|" << " " << grid[k][i] << " ";
|
cout << "|" << " " ;
|
||||||
|
if (grid[k][i] == "X") {
|
||||||
|
cout << emoteJ1;
|
||||||
}
|
}
|
||||||
cout << " |" << endl << " ";
|
else if (grid[k][i] == "O") {
|
||||||
|
cout << emoteJ2;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
cout << " ";
|
||||||
|
}
|
||||||
|
cout << " ";
|
||||||
|
}
|
||||||
|
cout << "|" << endl << " ";
|
||||||
|
|
||||||
for (int i = 0; i < LARGTIC; i++) {
|
for (int i = 0; i < LARGTIC; i++) {
|
||||||
cout << "|";
|
cout << "|";
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ int main() {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'C':
|
case 'C':
|
||||||
changerLeTheme();
|
changerLeTheme(theme);
|
||||||
theme = true;
|
theme = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user