diff --git a/Pokemon/main.cpp b/Pokemon/main.cpp index c2bc7bfc..8aaf161a 100644 --- a/Pokemon/main.cpp +++ b/Pokemon/main.cpp @@ -1,6 +1,96 @@ #include +#include +using namespace std; -int main() { +enum class PokemonChoice +{ + BULBASAUR = 1, + CHARMANDER, + SQUIRTLE, + INVALID +}; + +enum class PokemonType +{ + FIRE, + ELECTRIC, + WATER, + EARTH, + NORMAL, +}; + +void seperate() +{ + cout << "----------------------------------------\n"; +} + +int main() +{ + + string playerName; + PokemonChoice chosenPokemon = PokemonChoice::INVALID; + + cout << "Professor Oak: Hello there! Welcome to the world of Pokemon!\n"; + cout << "Professor Oak: My name is Oak. People call me the Pokemon " + "Professor!\n"; + cout << "Professor Oak: But enough on me. Let's talk about you!\n"; + seperate(); + cout << "Professor Oak: First, tell me, what’s your name?\n"; + cout << "Enter your name: "; + cin >> playerName; + + cout << "\n\nProfessor Oak: Ah, " << playerName + << "! What a fantastic name!\n"; + cout << "Professor Oak: You must be eager to start your adventure. But " + "first, you’ll need a Pokemon of your own!\n"; + seperate(); + cout << "Professor Oak: For now, I have three Pokémon for you to choose from.\n"; + cout << "You can choose one of the following Pokémon:\n"; + cout << "1. Bulbasaur\n2. Charmander\n3. Squirtle\n"; + + int choice; + cout << "Professor Oak: So, which one will it be? Enter the number of " + "your choice: "; + cin >> choice; + + switch (choice) + { + case 1: + chosenPokemon = PokemonChoice::BULBASAUR; + cout << "You have chosen Bulbasaur! A grass-type Pokémon." << endl; + break; + + case 2: + chosenPokemon = PokemonChoice::CHARMANDER; + cout << "You have chosen Charmander! A fire-type Pokémon." << endl; + break; + + case 3: + chosenPokemon = PokemonChoice::SQUIRTLE; + cout << "You have chosen Squirtle! A water-type Pokémon." << endl; + break; + + default: + chosenPokemon = PokemonChoice::CHARMANDER; + cout << "Hmm... You made an invalid choice. Anyways, I am assigning you Charmrander as your Pokemon friend.\n" + << endl; + break; + } + cout << "Ah, an excellent choice!\n\n"; + + cout << "Professor Oak: " << (chosenPokemon == PokemonChoice::BULBASAUR ? "Balbasaur" : chosenPokemon == PokemonChoice::CHARMANDER ? "Charmander" + : "Squirtle") + << " and you, " + << playerName << ", are going to be the best of friends!\n"; + seperate(); + cout << "Professor Oak: Your journey begins now! Get ready to explore " + "the vast world of Pokemon!\n"; + + cout << "But beware, Trainer,\n"; + cout << "this is only the beginning.\n"; + cout << "Your journey is about to unfold.\n"; + cout << "Now let’s see if you’ve got what it takes to keep going!\n"; + cout << "Good luck, and remember… Choose wisely!\n"; return 0; }