Created
December 4, 2022 23:40
-
-
Save romanhosh/0baceeef647a8c4eb7656e1e6e9ea024 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
int main() { | |
int start = 0; | |
int answer= 0; | |
std::cout << "You wake up in a mechanic shop.\n"; | |
std::cout << "You look around for a second...\n"; | |
std::cout << "You see a old 1999 bmw 328i. You also see a door outside. You walk out the door and find yourself in the middle on nowhere in a forest with 3 pine trees. You have no idea how you got here. You walk back inside and inside you see a room. You go inside and see a note book.\n"; | |
std::cout << "__________________________________________________________________________________________________________________________________________________________________________________________________________________________________\n"; | |
std::cout << "Note: Welcome to Roman's Mechanic shop. In order to leave you can walk out and end up walking forever or fix this car and drive out and find help, your're choic34e.\n"; | |
std::cout << "Mind:You don't want to walk out and die so you try to fix the car.\n"; | |
std::cout << "You read the rest of the note:\n"; | |
std::cout << "\nNote: There are 8 puzzles you have to complete in order to successfully fix and drive the car out:\n"; | |
std::cout << " On the car door there is a 2 digit code(with 3 tries) and the numbers can be found by solving these 2 questions:\n"; | |
std::cout << "(Puzzle one)question 1: there are pine trees outside how many are there?(hint: reread)\n"; | |
std::cout <<"question 2: how many wheels does the car have?(hint: if you dont know this you live under a rock)\n"; | |
std::cout <<"You walk to the car and try the pin(puzzle 2)\n"; | |
int store = 0; | |
int pin = 0; | |
int tries = 0; | |
std::cout << "Enter your PIN: "; | |
std::cin >> pin; | |
tries++; | |
while (pin != 34 && tries < 3) { | |
std::cout << "Enter your PIN: "; | |
std::cin >> pin; | |
tries++; | |
} | |
if (pin == 34) { | |
std::cout << "password accepted!\n"; | |
std::cout << "You now have access.\n"; | |
} | |
std::cout << "Lets enter the car!\n"; | |
std::cout << "In the car on the seat there is another note explaining the next puzzle.\n"; | |
std::cout << "Note: For the next puzzle you have to find the key to the car,4 solve this riddle to find it!\n"; | |
std::cout << "(Puzzle 3) Question 1: Where most people store there loose change? ?\n"; | |
std::cout << "1.cupholder 2. glovebox 3. door 4.narnia\n"; | |
switch (store) { | |
case 1: | |
std :cout << "haha its not there\n"; | |
break; | |
case 2: | |
std::cout << "haha its not there\n"; | |
break; | |
case 3: | |
std::cout << "haha its not there\n"; | |
break; | |
case 4: | |
std::cout << "haha its not there\n"; | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment