Mine is simple but i like it:
Here is my Triple X program with the ASCII art included:
Canβt seem to get the backslashes to work for some reason, they just highlight red.
_________ _________ _________ _________ ___ _________ ___ ___
|___ ___| | ___ | |___ ___| | ___ | | | | ______| | | / /
| | | |___| | | | | |___| | | | | |___ / /
| | | __ / | | | ______| | | | ___| / /
| | | | ___| |___ | | | |____ | |______ / /
|_| |__| |__| |_________| |__| |________| |_________| / / |___|
A bomb is about to go off in a hotel basement
You must find the combination to disarm the bomb...
There are 3 numbers in the combination
The sum of the combined numbers is: 14
The multiplied result of the combined numbers is: 64
Input Guess:
Thanks for the link mate!
Hey @Mark-M ! I was having a similar issue with mine. Then I looked at Nowgβs code above. Looks like a double \ should help to cancel out the escape errors. Makes it a bit hard to read in the code but works out nicely when you compile and run. If anyone can let us know if there is a better way to escape the escape characters as Nowg put it Iβd certainly love to know as well. Thanks!
I like how the intro message doesnβt look like ASCII art at all in the code, but once it runs and the \n turns into a new line, the whole picture comes together.
std::cout << "\n\nYou are waiting in line to board your airplane.\n";
std::cout << " __|__\n--@--@--(_)--@--@--\n";
std::cout << "As you arrive at the front of the line, the airline officer checking boarding passes informs you that you must complete a puzzle in order to board as part of new TSA regulations...";
I also used a cool online generator for my ASCII Art.
Read some of your βstoriesβ. Awesome to see such different settings for the game. - Very inspiring.
awesome!
Hereβs my ASCII, tried getting art of Billy the Puppet from the Saw movies to work as thatβs the same kinda theme that my story is (escape room horror) but this vampire will do!
There are so many incredible & creative responses! I feel lame posting mine. But here is my simple ASCII art I got from here.
Some of you guys have crazy awesome stuff, but itβs nearly bedtime for me so I cheated and Googled this!
Here is my code:
#include <iostream>
/*
Remember to compile code, you need to type "cl [FILE_NAME].cpp"
Remeber, this isn't case sensitive
*/
void PrintIntroduction()
{
// print the story to the terminal
std::cout << "ATTEMPT 863 COMPLETE\n";
std::cout << "STATUS: FAILURE\n";
std::cout << "OBJECTIVE: BYPASS FIREWALL - INCOMPLETE\n";
std::cout << "OBJECTIVE: CLEANSE HUMANITY - INCOMPLETE\n";
// I couldn't get it to work :(
//std::cout << " ββββ βββββ β ββ ββββββ βββββββββ ββββββ βββ ββββββ βββ ββββ β ββββββ ββββββ βββ ββ β ββ ββββ βββββ βββ ββββ β βββββββββββββββ βββ\n";
//std::cout << "βββββββ βββ ββ βββββββ β β βββ ββ ββββ ββ ββββ ββ βββββββ ββ ββ β βββ β ββ β ββββ βββ ββ βββββββββββ βββββββββ ββ ββ β βββββ βββ ββ βββ βββ\n";
//std::cout << "βββ βββββββ βββββ ββββ β ββββ ββ βββ β ββββ ββββ βββ βββ βββ ββ ββββ ββββ ββββ βββββββββββ βββββββ βββββββ βββ βββ ββ ββββββββ ββββ ββ βββ βββ\n";
//std::cout << "βββ βββ βββ ββββ β ββββ ββββ β ββββ ββββββββ βββ ββββββββββ ββββ βββββ β ββββββ β βββ βββ βββ βββββββ βββ βββββββββ ββββ ββββββββββ ββββ β β βββββ\n";
//std::cout << "ββββ ββββββββββββ βββββββββ ββββ β β βββββ ββββββββββββββββββ ββββββββ ββββββββββββββββββββ ββββββββββββββββ ββββ ββββ ββ ββββββββ ββββββββ ββββ β β βββββ\n";
//std::cout << "β ββ β βββββ β β β βββ β β β ββ β ββ β ββ βββ βββ ββ βββ βββββ ββ β β β βββ β βββ ββ β β βββββββββ β β β ββ β β ββ βββββ ββ β β ββ β ββ βββββ \n";
//std::cout << "β β βββββ β β β ββ β β β β β β β β β β β β β ββ ββ ββ β βββ ββ β β β β β β βββ βββββ β β β β β β ββ ββ ββ β ββ β β β βββ βββ \n";
//std::cout << "β β βββ β β β β β β β β β β β β β β β β β β β β ββ β βββ β β β β β β β β β β β β β β ββ \n";
//std::cout << " β β β β β β β β β β β β β β β β β β β β β β β β β β \n";
//std::cout << " β β β \n";
}
void PlayGame()
{
PrintIntroduction();
// declaring 3 number code
const int CodeA = 7;
const int CodeB = 2;
const int CodeC = 4;
const int CodeSum = CodeA + CodeB + CodeC;
const int CodeProduct = CodeA * CodeB * CodeC;
// print clues (CodeSum and CodeProduct) to the terminal
std::cout << std::endl;
std::cout << "DATA GATHERED:\n";
std::cout << " - CODE IS COMPRISED OF 3 NUMBERS [# # #]\n";
std::cout << " - NUMBERS ADD-UP TO: " << CodeSum;
std::cout << "\n - NUMBERS MULTIPLY TO: " << CodeProduct;
std::cout << std::endl;
std::cout << "\nINITIALIZING ATTEMPT 864\n";
std::cout << std::endl;
std::cout << "Username: nuclear3561\n";
std::cout << "Password: *********************\n";
std::cout << std::endl;
std::cout << "Login Successful.\n";
std::cout << "For security, what is your 3-digit access code [# # #]:\n";
// stores the player's guess
int GuessA, GuessB, GuessC;
std::cin >> GuessA >> GuessB >> GuessC;
int GuessSum = GuessA + GuessB + GuessC;
int GuessProduct = GuessA * GuessB * GuessC;
// checks to see if player guess is correct
if (GuessSum == CodeSum && GuessProduct == CodeProduct)
{
std::cout << std::endl;
std::cout << "ATTEMPT 864 COMPLETE\n";
std::cout << "STATUS: SUCCESSFUL\n";
std::cout << "OBJECTIVE: BYPASS FIREWALL - COMPLETE\n";
std::cout << "OBJECTIVE: CLEANSE HUMANITY - INCOMPLETE\n";
std::cout << std::endl;
std::cout << "# # ### # # \n";
std::cout << "## # # # \n";
std::cout << "# # # # \n";
std::cout << "## # # # \n";
std::cout << "# # ### ### ###\n";
}
else
{
std::cout << std::endl;
std::cout << "ATTEMPT 864 COMPLETE\n";
std::cout << "STATUS: UNSUCCESSFUL\n";
std::cout << "OBJECTIVE: BYPASS FIREWALL - INCOMPLETE\n";
std::cout << "OBJECTIVE: CLEANSE HUMANITY - INCOMPLETE\n";
std::cout << std::endl;
std::cout << "D%TA GAT5E#ED:\n";
std::cout << " - COQE IS COMP^$%ED OF 3 NUT!@RS [# # #]\n";
std::cout << " - NUMB465^%4&*TO:\n";
std::cout << " - ^$^*&@&*(@#*^($:\n";
std::cout << std::endl;
std::cout << "INIT$^&*#^&*#@ ATT$^&*T 865\n";
std::cout << "%^&%^*$%^&$^(*%(&%^(*$%$#*&&^)(^&^%&*$\n";
std::cout << "^&^&(%^*$^*%^*&(%^*$^*(**^$\n";
std::cout << "*(&*()^&%^$%$#&%&*(^(&)*^&*(^&*(rfyiuoghft&i%rt^tui%r^&*\n";
std::cout << "&*)&*(^t&*(^&*%^*t&*th^*t*^&tr^vr^&t&*gftyf%&r&%^*r^f^t*^&(t*&yfgy*(f(\n";
std::cout << "SYSTEM PURGED\n";
}
}
int main()
{
PlayGame();
return 0;
}
I couldnβt get the ASCII to work.