ajout des thèmes et début de la fonction changer le theme
This commit is contained in:
@@ -87,11 +87,11 @@ void afficherImageMenu(std::fstream& monFlux) {
|
|||||||
|
|
||||||
//G<>n<EFBFBD>ral (plusieurs options)
|
//G<>n<EFBFBD>ral (plusieurs options)
|
||||||
void initTab(string grid[][LARGTIC]) {
|
void initTab(string grid[][LARGTIC]) {
|
||||||
for (int i = 0; i < LARGTIC; i++) {
|
/*for (int i = 0; i < LARGTIC; i++) {
|
||||||
for (int j = 0; j < LARGTIC; i++) {
|
for (int j = 0; j < LARGTIC; i++) {
|
||||||
grid[i][j] = " ";
|
grid[i][j] = " ";
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
void afficherImageTableau(std::string grid[][LARGTIC]) {
|
void afficherImageTableau(std::string grid[][LARGTIC]) {
|
||||||
@@ -322,5 +322,21 @@ void historiqueDesScores() {
|
|||||||
|
|
||||||
//Changer le th<74>me
|
//Changer le th<74>me
|
||||||
void changerLeTheme() {
|
void changerLeTheme() {
|
||||||
|
system("cls");
|
||||||
|
cout << endl << "Changer le theme du jeu Tic Tac Toe" << endl
|
||||||
|
<< "Options des styles: " << "\nA) Ocean"
|
||||||
|
<< "\nB) Fantaisie" << "\nC) Espace"
|
||||||
|
<< "\nD) Animaux" << "\nChoisir une option: ";
|
||||||
|
choix = toupper(_getche());
|
||||||
|
cout << endl;
|
||||||
|
|
||||||
|
switch (choix) {
|
||||||
|
case 'A': {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
case 'B': {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
4
TicTacToe/themes/themeAnimaux.txt
Normal file
4
TicTacToe/themes/themeAnimaux.txt
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
🍃
|
||||||
|
🌳
|
||||||
|
🐄
|
||||||
|
🐏
|
||||||
4
TicTacToe/themes/themeEspace.txt
Normal file
4
TicTacToe/themes/themeEspace.txt
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
🪐
|
||||||
|
✨
|
||||||
|
👽
|
||||||
|
🧑🚀
|
||||||
4
TicTacToe/themes/themeFantasy.txt
Normal file
4
TicTacToe/themes/themeFantasy.txt
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
🪄
|
||||||
|
🏰
|
||||||
|
🐦🔥
|
||||||
|
🐉
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
🌵
|
|
||||||
🌱
|
|
||||||
@@ -1,2 +1,4 @@
|
|||||||
🌊
|
🌊
|
||||||
🪸
|
🪸
|
||||||
|
🦀
|
||||||
|
🐬
|
||||||
Reference in New Issue
Block a user