diff --git a/TicTacToe/0 b/TicTacToe/0 index 6fe9972..4588032 100644 --- a/TicTacToe/0 +++ b/TicTacToe/0 @@ -1 +1 @@ -Press any key to continue . . . +Appuyez sur une touche pour continuer... diff --git a/TicTacToe/fonctions.cpp b/TicTacToe/fonctions.cpp index 179ec34..3b20d75 100644 --- a/TicTacToe/fonctions.cpp +++ b/TicTacToe/fonctions.cpp @@ -96,13 +96,12 @@ void initTab(string grid[][LARGTIC]) { void afficherImageTableau(std::string grid[][LARGTIC]) { SetConsoleOutputCP(CP_UTF8); string emoteUp, - emoteLine, emoteDown; // Faire une fonction pour retenir le thème sélectionné par le joueur!!!! - ouvrirFichier(monFlux, "themes/themeSea.txt"); + ouvrirFichier(monFlux, "themes/themeGrass.txt"); if (monFlux) { while (!monFlux.eof()) { - monFlux >> emoteUp >> emoteLine >> emoteDown; + monFlux >> emoteUp >> emoteDown; } monFlux.close(); cout << endl; @@ -129,27 +128,27 @@ void afficherImageTableau(std::string grid[][LARGTIC]) { cout << endl << " "; for (int i = 0; i < LARGTIC; i++) { - cout << emoteLine; + cout << " |"; for (int j = 0; j < 3; j++) { cout << " "; } } - cout << emoteLine << endl << " " << k + 1 << " "; + cout << " |" << endl << " " << k + 1 << " "; for (int i = 0; i < LARGTIC; i++) { - cout << emoteLine << " " << grid[k][i] << " "; + cout << " |" << " " << grid[k][i] << " "; } - cout << emoteLine << endl << " "; + cout << " |" << endl << " "; for (int i = 0; i < LARGTIC; i++) { - cout << emoteLine; + cout << " |"; for (int j = 0; j < 3; j++) { cout << " "; } } - cout << emoteLine << endl << " "; + cout << " |" << endl << " "; } diff --git a/TicTacToe/themes/themeGrass.txt b/TicTacToe/themes/themeGrass.txt new file mode 100644 index 0000000..66ef0c9 --- /dev/null +++ b/TicTacToe/themes/themeGrass.txt @@ -0,0 +1,2 @@ +🌵 +🌱 \ No newline at end of file diff --git a/TicTacToe/themes/themeSea.txt b/TicTacToe/themes/themeSea.txt index cc332be..732a3b7 100644 --- a/TicTacToe/themes/themeSea.txt +++ b/TicTacToe/themes/themeSea.txt @@ -1,3 +1,2 @@ 🌊 -🔹 🪸 \ No newline at end of file