Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
127 changes: 113 additions & 14 deletions Pokemon/Pokemon/Pokemon.cpp
Original file line number Diff line number Diff line change
@@ -1,20 +1,119 @@
// Pokemon.cpp : This file contains the 'main' function. Program execution begins and ends there.
//

#include <iostream>
#include<vector>

int main()
using namespace std;

//Enum Classes
enum class Pokemon_Choice
{
std::cout << "Hello World!\n";
Charmander,
Bulbasaur,
Squirtle,
Chosen_For_You
};

enum class Pokemon_Types
{
Normal_Type,
Fire_Type,
Water_Type,
Electric_Type,
Grass_Type,
Ice_Type,
Fighting_Type,
Poison_Type,
Ground_Type,
Flying_Type,
Psychic_Type,
Bug_Type,
Rock_Type,
Ghost_Type,
Dragon_Type,
Dark_Type,
Steel_Type,
Fairy_Type
};


//Variables
string player_name;
vector<Pokemon_Choice> captured_pokemon;

//Functions
static string EnterName()
{
string name;
cout << "Enter your Name: ";
cin >> name;
return name;
}

// Run program: Ctrl + F5 or Debug > Start Without Debugging menu
// Debug program: F5 or Debug > Start Debugging menu
static void WelcomeMessage(string name)
{
cout << "Welcome " + name + "!\n";
}

// Tips for Getting Started:
// 1. Use the Solution Explorer window to add/manage files
// 2. Use the Team Explorer window to connect to source control
// 3. Use the Output window to see build output and other messages
// 4. Use the Error List window to view errors
// 5. Go to Project > Add New Item to create new code files, or Project > Add Existing Item to add existing code files to the project
// 6. In the future, to open this project again, go to File > Open > Project and select the .sln file
Pokemon_Choice ChooseFirstPokemon()
{
Pokemon_Choice chosen_pokemon;
cout << "Welcome to the world of Pokemon! I am Professor Oak.\n";
cout << "You can choose one of the following Pokemon:\n";
cout << "1. Bulbasaur\n2. Charmander\n3. Squirtle\n";
cout << "Which Pokemon would you like to choose? Enter the number: ";

int choice;
cin >> choice;

switch (choice)
{
case 1:
chosen_pokemon = Pokemon_Choice::Charmander;
break;
case 2:
chosen_pokemon = Pokemon_Choice::Bulbasaur;
break;
case 3:
chosen_pokemon = Pokemon_Choice::Squirtle;
break;
default:
chosen_pokemon = Pokemon_Choice::Chosen_For_You;
break;
}

switch (chosen_pokemon)
{
case Pokemon_Choice::Charmander:
cout << "You chose Charmander! A fiery choice.\n";
break;
case Pokemon_Choice::Bulbasaur:
cout << "You chose Bulbasaur! A wise choice.\n";
break;
case Pokemon_Choice::Squirtle:
cout << "You chose Squirtle! A cool choice.\n";
break;
default:
cout << "Professor Oak: Hmm, that doesn't seem right. Let me choose for you...\n";
chosen_pokemon = Pokemon_Choice::Charmander;
cout << "Professor Oak: Just kidding! Let's go with Charmander, the surprise guest!\n";
break;
}

cout << "Ah, an excellent choice!\n";
cout << "Professor Oak: " << (chosen_pokemon == Pokemon_Choice::Charmander ? "Charmander" : chosen_pokemon == Pokemon_Choice::Bulbasaur ? "Bulbasaur" : "Squirtle") << " and you, " << player_name << ", are going to be the best of friends!\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 << "Professor Oak: Your journey begins now!";
cout << "Get ready to explore the vast world of Pokemon!\n";
cout << "Good luck, and remember. . . Choose Wisely!\n";

return chosen_pokemon;
}

int main()
{
player_name = EnterName();
WelcomeMessage(player_name);
captured_pokemon.push_back(ChooseFirstPokemon());
}