diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 00000000..05054c5c --- /dev/null +++ b/.vscode/tasks.json @@ -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" +} \ No newline at end of file diff --git a/Pokemon/main b/Pokemon/main new file mode 100755 index 00000000..0902fa35 Binary files /dev/null and b/Pokemon/main differ diff --git a/Pokemon/main.cpp b/Pokemon/main.cpp index c2bc7bfc..91177d6e 100644 --- a/Pokemon/main.cpp +++ b/Pokemon/main.cpp @@ -1,6 +1,77 @@ #include +#include +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; + + + + +} \ No newline at end of file