- Sweet and Simple
_______ _ _______ _
(_______)| | ( ______) (_)
_ | | _ ____ \ \ ____ _ ____ ____
| | | || \ / _ ) \ \ | _ \ | | / ___) / _ )
| |_____ | | | |( (/ / _____) )| | | || || | ( (/ /
\______)|_| |_| \____) (______/ | ||_/ |_||_| \____)
|_|
You enter The Spire and find a door on the other end.
You must enter the correct numbers to move through the next door...
I checked the code online and found this one and it looked quite good so I copied the code ( just the art part )
int DoorOpen()
{
std::cout << R"(
______________
|\ ___________ /|
| | /|,| | | |
| | |,x,| | | |
| | |,x,' | | |
| | |,x , | |
| | |/ | | |
| | /] , | |
| | [/ () | |
| | | | |
| | | | |
| | | | |
| | ,' | |
| | ,' | |
|_|,'_________|_|
)" << '\n';
return 0;
}
//failure message function
int YouAreDead()
{
std::cout << R"(
_______________________________________________________
/ \
| WASTED |
\_________ _______________________________ /
\_ __/ ___---------__
\ _/ / \_
\ / / \
| / | _ _ \ \
| | / / \ / \ | \
| | || || || |
| | | \_//\\_/ | |
| | |_| (||) |_______| |
| | | || | _ / / |
\ \ |_________|| \/ / /
\ \_ |_|_|_|_|/| _/___/
\__> _ _/_ _ / |
.|_|_|_|_| |
| /
|__________/
)" << '\n';
return 0;
}
#include <iostream>
using std::string;
string replace_all() {
const auto ASCII_template = string("\
SSSSSSSSSSS\n\
SSS SS SS\n\
SSS SS SS\n\
SSS SSSSSSSSSS SSSSSSSSSS\n\
SSS SS SS\n\
SSS SS SS\n\
SSSSSSSSSSS");
return ASCII_template;
}
void PlayGame(){
std::cout << replace_all() << std::endl;
//story line starts here
std::cout << "You are a secret agent breaking into a secure server room...\n";
std::cout << "You need to enter the correct codes to continue...\n \n";
//declaring initial variables for the code
const int CodeA = 2;
const int CodeB = 3;
const int CodeC = 4;
const int CodeSum = CodeA+CodeB+CodeC;
const int CodeProduct = CodeA*CodeB*CodeC;
std::cout << " + There are 3 numbers in the code\n";
std::cout << " + The code sums up to: " << CodeSum;
std::cout << "\n + The code multiply to: " << CodeProduct;
std::cout << "\n\nEnter the code to continue...\n\n";
int GuessA, GuessB, GuessC;
//getting user code input
std::cin >> GuessA >> GuessB >> GuessC;
int GuessSum = GuessA + GuessB + GuessC;
int GuessProduct = GuessA * GuessB * GuessC;
//validating user code
if (GuessSum == CodeSum && GuessProduct == CodeProduct)
{
std::cout << "Brilliant! You made it. Now hurry up and move your ass. They are coming for you!";
}
else
{
std::cout << "Beep! Beep! Alarms have been triggered and traps crushed you like jellybean";
}
}
int main()
{
PlayGame();
return 0;
}
Here is my introduction…
This has been a lot of fun
Hello Mr.Milory
Thank You For The course
With Out That I Can’t To Be In Epic Games Now