rework de tout le code

This commit is contained in:
William
2025-11-28 09:36:43 -05:00
parent 982a2edf88
commit 4e2b25c906
3 changed files with 44 additions and 46 deletions

View File

@@ -25,6 +25,7 @@ int main() {
bool quitter = false; //Quitter le jeu
int nbMot3lettre = 15; //Nombre de mot pr<70>sent dans le fichier
int temp = 0; //TODO: Variable temporaire
string motRandom; // Mot random
while (quitter == false) {
curseur(false);
@@ -34,33 +35,33 @@ int main() {
int choixMenu = _getch();
switch (choixMenu) {
case '1':
afficherMenu("AfficheMenu/TaxonOption1.txt");
delai();
curseur(true);
system("cls");
background(temp);
choisirMot("Mots/mot3lettres.txt", nbMot3lettre);
afficherMenuJouer();
break;
case '1':
afficherMenu("AfficheMenu/TaxonOption1.txt");
delai();
curseur(true);
system("cls");
background(temp);
motRandom = choisirMot("Mots/mot3lettres.txt", nbMot3lettre);
afficherMenuJouer();
break;
case '2':
afficherMenu("AfficheMenu/TaxonOption2.txt");
delai();
curseur(true);
system("cls");
temp = demanderBackground();
background(temp);
break;
case '2':
afficherMenu("AfficheMenu/TaxonOption2.txt");
delai();
curseur(true);
system("cls");
temp = demanderBackground();
background(temp);
break;
case '3':
afficherMenu("AfficheMenu/TaxonOption3.txt");
delai();
background('1');
afficherMenu("AfficheMenu/Quitter.txt");
quitter = true;
break;
}
case '3':
afficherMenu("AfficheMenu/TaxonOption3.txt");
delai();
background('1');
afficherMenu("AfficheMenu/Quitter.txt");
quitter = true;
break;
}
system("PAUSE>0");
system("cls");