Skip to content
Open
Show file tree
Hide file tree
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
28 changes: 28 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: g++ build active file",
"command": "/usr/bin/g++",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Task generated by Debugger."
}
],
"version": "2.0.0"
}
Binary file added Pokemon/main
Binary file not shown.
75 changes: 73 additions & 2 deletions Pokemon/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,77 @@
#include <iostream>
#include <string>
using namespace std;

int main() {
// Variables to store player name and chosen Pokemon
string player_name;
string chosen_pokemon;

return 0;
}
// Introduction by the Professor
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 about me. Let's talk about you!\n";

// Taking player name as input
cout << "Professor Oak: First, tell me, what’s your name?\n";
cin >> player_name;

cout << "Professor Oak: Ah, " << player_name
<< "! 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";

// Presenting Pokemon choices
cout << "Professor Oak: I have three Pokemon here with me. They’re all "
"quite feisty!\n";
cout << "Professor Oak: Choose wisely...\n";
cout << "1. Charmander - The fire type. A real hothead!\n";
cout << "2. Bulbasaur - The grass type. Calm and collected!\n";
cout << "3. Squirtle - The water type. Cool as a cucumber!\n";

int choice;
cout << "Professor Oak: So, which one will it be? Enter the number of "
"your choice: ";
cin >> choice;

// Store the chosen Pokemon based on user input
switch (choice) {
case 1:
chosen_pokemon = "Charmander";
cout << "Professor Oak: A fiery choice! Charmander is yours!\n";
break;

case 2:
chosen_pokemon = "Bulbasaur";
cout << "Professor Oak: A fine choice! Bulbasaur is always ready to "
"grow on you!\n";
break;

case 3:
chosen_pokemon = "Squirtle";
cout << "Professor Oak: Splendid! Squirtle will keep you cool under "
"pressure!\n";
break;

default:
cout << "Professor Oak: Hmm, that doesn't seem right. Let me choose "
"for you...\n";
chosen_pokemon = "Pikachu"; // Default if no valid choice is made
cout << "Professor Oak: Just kidding! Let's go with Pikachu, the "
"surprise guest!\n";
break;
}

// Concluding the first chapter
cout << "Professor Oak: " << chosen_pokemon << " and you, "
<< player_name << ", are going to be the best of friends!\n";
cout << "Professor Oak: Your journey begins now! Get ready to explore "
"the vast world of Pokemon!\n";

return 0;




}