Skip to content

feature_1_Pokemon_selection#48

Open
Pyerrette wants to merge 2 commits intooutscal:Pokemon_Selectionfrom
Pyerrette:Pokemon_Selection
Open

feature_1_Pokemon_selection#48
Pyerrette wants to merge 2 commits intooutscal:Pokemon_Selectionfrom
Pyerrette:Pokemon_Selection

Conversation

@Pyerrette
Copy link

No description provided.

@Pyerrette Pyerrette closed this May 30, 2025
@Pyerrette Pyerrette reopened this May 30, 2025
@Pyerrette
Copy link
Author

#include
#include
#include <windows.h>
#include
#include

using namespace std;

enum PokemonChoice {
Bulbizarre,
Salameche,
Carapuce,
InvalidChoice
};

int main() {
string playerName;

PokemonChoice (chosen_pokemon) = InvalidChoice;

cout << "Enter you name : " << endl;
cin >> playerName;
cout << "Bien le bonjour " << playerName << " ! Et bienvenue dans le monde merveilleux des Pokemons !" << endl;
cout << "Je suis le fameux professeur Chen, oui oui c'est bien moi ne poussez pas trop, on fera des photos plus tard.";
cout << " Arretez les filles voyons, gardez vos culottes je suis un homme marie !" << endl;
cout << "Ou en etais-je ? Ah oui, j'allais vous parler des Pokemons ! Choissisez en un parmi ces trois la : " << endl;
cout << "1. Bulbizarre\n2. Salameche (le meilleur objectivement)\n3. Carapuce" << endl;
cout << "Alors, lequel choisissez-vous ? (1, 2 ou 3) : " << endl;

int choice;
cout << "Choisis Salameche ou consequences." << endl;
cin >> choice;

switch (choice) {
    case 1:
		chosen_pokemon = Bulbizarre;          
        break;
    case 2:
        chosen_pokemon = Salameche;
        break;
    case 3:
		chosen_pokemon = Carapuce;          
        break;
    default:
		chosen_pokemon = InvalidChoice;  
        break;
        }

switch (chosen_pokemon) {
    case Bulbizarre:
        cout << "Vous avez choisi Bulbizarre ! Pas ouf, j'aurais prefere Salameche, le meilleur a mes yeux..." << endl;
        break;
    case Salameche:
        cout << "Vous avez choisi Salameche ! Le meilleur choix, sans aucun doute !" << endl;
        break;
    case Carapuce:
        cout << "Vous avez choisi Carapuce ! Vous etes sur ? Dans un monde ou salameche existe ? Bon bon d'accord..." << endl;
        break;
    case InvalidChoice:
        cout << "Tu ne veux vraiment pas choisir Salameche (ou les deux autres nullos) ? Et bah tiens voila Pikachu." << endl;
        break;
}


return 0;

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants