From db00ac9352e0de1ea4cfc90755120824b56742b2 Mon Sep 17 00:00:00 2001 From: Lea Date: Wed, 26 Nov 2025 09:30:08 -0500 Subject: [PATCH] =?UTF-8?q?Ajout=20d'un=20th=C3=A8me=20manuellement=20modi?= =?UTF-8?q?fi=C3=A9,=20modification=20du=20visuel=20du=20tic=20tac=20toe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TicTacToe/0 | 2 +- TicTacToe/fonctions.cpp | 17 ++++++++--------- TicTacToe/themes/themeGrass.txt | 2 ++ TicTacToe/themes/themeSea.txt | 1 - 4 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 TicTacToe/themes/themeGrass.txt 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 eedce18..30333ae 100644 --- a/TicTacToe/fonctions.cpp +++ b/TicTacToe/fonctions.cpp @@ -93,13 +93,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; @@ -126,27 +125,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