diff --git a/TicTacToe/fonctions.cpp b/TicTacToe/fonctions.cpp index eefaf4a..dcda946 100644 --- a/TicTacToe/fonctions.cpp +++ b/TicTacToe/fonctions.cpp @@ -111,7 +111,8 @@ void afficherImageTableau(std::string grid[][LARGTIC], std::string style) { // Lignes de code pour faire afficher le Tic Tac Toe une fois que les symboles ont été ajoutés 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 été ajoutés cout << " "; for (int i = 0; i < LARGTIC; i++) { cout << " " << i + 1 << " "; @@ -140,7 +141,7 @@ void afficherImageTableau(std::string grid[][LARGTIC], std::string style) { cout << "|" << " " ; if (grid[k][i] == "X") { cout << emoteJ1; - } + } else if (grid[k][i] == "O") { cout << emoteJ2; } diff --git a/TicTacToe/main.cpp b/TicTacToe/main.cpp index b3863aa..32e08ba 100644 --- a/TicTacToe/main.cpp +++ b/TicTacToe/main.cpp @@ -46,6 +46,7 @@ int main() { case 'C': changerLeTheme(theme); + theme = true; break; case 'Q':