Je sais plus
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,14 +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);
|
||||
string emoteUp,
|
||||
@@ -346,11 +338,6 @@ 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};
|
||||
|
||||
@@ -21,9 +21,8 @@ void afficherMenu(char& choix);
|
||||
void afficherImageMenu(std::fstream& monFlux);
|
||||
|
||||
//G<>n<EFBFBD>ral
|
||||
void initTab(std::string grid[][LARGTIC]);
|
||||
void afficherImageTableau(std::string grid[][LARGTIC], std::string style);
|
||||
void changerLeTheme(std::string& style);
|
||||
void changerLeTheme();
|
||||
void tourJoueur(std::string grid[][LARGTIC], int joueur); //pour savoir quel icon utiliser
|
||||
bool verifFinMatch(std::string grid[][LARGTIC]);
|
||||
void afficherFinMatch(std::string grid[][LARGTIC], int gagnant, int nbJoueurs);
|
||||
@@ -35,8 +34,5 @@ void tourOrdi(std::string grid[][LARGTIC]);
|
||||
//2 joueurs
|
||||
void jeuDeuxJoueurs(std::string grid[][LARGTIC]);
|
||||
|
||||
//Historique
|
||||
void historiqueDesScores();
|
||||
|
||||
//Changer le th<74>me
|
||||
void changerLeTheme();
|
||||
@@ -16,30 +16,29 @@ const string ICONJ2 = "O";
|
||||
int main() {
|
||||
srand(time(NULL));
|
||||
|
||||
bool theme = false;
|
||||
char choix;
|
||||
string grid[LARGTIC][LARGTIC];
|
||||
|
||||
do {
|
||||
initTab(grid);
|
||||
afficherMenu(choix);
|
||||
|
||||
switch (choix) {
|
||||
case 'A':
|
||||
|
||||
system("cls");
|
||||
jeuUnJoueur(grid);
|
||||
break;
|
||||
|
||||
case 'B':
|
||||
|
||||
system("cls");
|
||||
jeuDeuxJoueurs(grid);
|
||||
break;
|
||||
|
||||
case 'C':
|
||||
historiqueDesScores();
|
||||
break;
|
||||
|
||||
case 'D':
|
||||
changerLeTheme();
|
||||
theme = true;
|
||||
break;
|
||||
|
||||
case 'Q':
|
||||
|
||||
Reference in New Issue
Block a user