Skip to content

Instantly share code, notes, and snippets.

@AJ-Acevedo
Forked from romanhosh/escape room project not complete c++
Last active December 5, 2022 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AJ-Acevedo/7e774f91cd143e4a03656981695586a0 to your computer and use it in GitHub Desktop.
Save AJ-Acevedo/7e774f91cd143e4a03656981695586a0 to your computer and use it in GitHub Desktop.
escape room project not complete c++
#include <iostream>
int main() {
// Variables
int start = 0;
int answer= 0;
int store = 0;
int pin = 0;
int tries = 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";
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\n 2. glovebox\n 3. door 4.narnia\n";
std::cin >> store;
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