DERNIER COMMIT DE LA JOURNÉE
This commit is contained in:
@@ -49,11 +49,11 @@ void afficherMenu(char& choix) {
|
||||
fermerFichier(monFlux);
|
||||
|
||||
// Menu
|
||||
cout << endl << "MENU" << endl << "----------------------------------" << endl
|
||||
cout << endl << "MENU" << endl
|
||||
<< "----------------------------------" << endl
|
||||
<< "A) 1 joueur" << endl
|
||||
<< "B) 2 joueurs" << endl
|
||||
<< "C) Montrer l'historique des scores" << endl
|
||||
<< "D) Changer le style du jeu" << endl
|
||||
<< "C) Changer le style du jeu" << endl
|
||||
<< "Q) Quitter" << endl << endl
|
||||
<< "Quel est votre choix? ";
|
||||
choix = toupper(_getche());
|
||||
@@ -86,13 +86,6 @@ void afficherImageMenu(std::fstream& monFlux) {
|
||||
}
|
||||
|
||||
//G<>n<EFBFBD>ral (plusieurs options)
|
||||
void initTab(string grid[][LARGTIC]) {
|
||||
for (int i = 0; i < LARGTIC; i++) {
|
||||
for (int j = 0; j < LARGTIC; j++) {
|
||||
grid[i][j] = " ";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void afficherImageTableau(std::string grid[][LARGTIC], std::string style) {
|
||||
SetConsoleOutputCP(CP_UTF8);
|
||||
@@ -106,7 +99,7 @@ void afficherImageTableau(std::string grid[][LARGTIC], std::string style) {
|
||||
ouvrirFichier(monFlux, style);
|
||||
if (monFlux) {
|
||||
while (!monFlux.eof()) {
|
||||
monFlux >> emoteUp >> emoteDown >> iconJ1 >> iconJ2;
|
||||
monFlux >> emoteUp >> emoteDown >> ICONJ1 >> ICONJ2;
|
||||
}
|
||||
monFlux.close();
|
||||
cout << endl;
|
||||
@@ -117,6 +110,9 @@ void afficherImageTableau(std::string grid[][LARGTIC], std::string style) {
|
||||
}
|
||||
fermerFichier(monFlux);
|
||||
|
||||
grid[0][0] = ICONJ1;
|
||||
grid[0][1] = ICONJ2;
|
||||
|
||||
// Lignes de code pour faire afficher le Tic Tac Toe une fois que les symboles ont <20>t<EFBFBD> ajout<75>s
|
||||
cout << " ";
|
||||
for (int i = 0; i < LARGTIC; i++) {
|
||||
@@ -346,14 +342,9 @@ void jeuDeuxJoueurs(string grid[][LARGTIC]) {
|
||||
afficherFinMatch(grid, gagnant, nbJoueurs);
|
||||
}
|
||||
|
||||
//Historique
|
||||
void historiqueDesScores() {
|
||||
|
||||
}
|
||||
|
||||
//Changer le th<74>me
|
||||
void changerLeTheme() {
|
||||
string grid[LARGTIC][LARGTIC] = {ICONJ1, ICONJ2};
|
||||
string grid[LARGTIC][LARGTIC];
|
||||
system("cls");
|
||||
do {
|
||||
cout << endl << "Changer le theme du jeu Tic Tac Toe" << endl
|
||||
|
||||
@@ -20,7 +20,6 @@ int main() {
|
||||
string grid[LARGTIC][LARGTIC];
|
||||
|
||||
do {
|
||||
initTab(grid);
|
||||
afficherMenu(choix);
|
||||
|
||||
switch (choix) {
|
||||
@@ -35,10 +34,6 @@ int main() {
|
||||
break;
|
||||
|
||||
case 'C':
|
||||
historiqueDesScores();
|
||||
break;
|
||||
|
||||
case 'D':
|
||||
changerLeTheme();
|
||||
break;
|
||||
|
||||
|
||||
@@ -2,3 +2,4 @@
|
||||
🔹
|
||||
✖️
|
||||
⭕
|
||||
|
||||
Reference in New Issue
Block a user