TripleX - Amy's Escape - A short console story

Long time no post.

This time, to share some C++ work. Finished, the TripleX section and moving on to the next one. I’ve some familiarity with C++ so I’ve added some things Instructor Gavin hasn’t mentioned.
I’ve used ASCII conversion tools you can find online to make a drawing I’ve made into the ASCII image you see here. Same case for the big title.

I’ve written a short story about a young girl’s escape from a derelict asteroid mining colony. She’s had enough and she wants to do better, for herself and her family.

Solve the TripleX problems and help her escape!

Your feedback is always appreciated.

#include <iostream>
#include <windows.h>
#include <ctime>

//Printing functions
void PrintAscii();
void PrintIntroduction();
void Dialogue(int Difficulty);
void EndingDialogue();

// Game loop
bool PlayGame(int Difficulty);

int main(){

srand(time(NULL));

int LevelDifficulty = 1;
const int MaxDifficulty = 5;

PrintAscii();

system("pause");

// Clears console
system("cls");

PrintIntroduction();

// Loop game until all levels completed
while (LevelDifficulty <= MaxDifficulty) 
{
    bool bLevelComplete = PlayGame(LevelDifficulty);
    std::cin.clear();
    std::cin.ignore();
 
    if (bLevelComplete) 
    {
       ++LevelDifficulty;
       Dialogue(LevelDifficulty);
    } 

}
    // Prints ending dialogue
    EndingDialogue();

    system("pause");

    return 0;
}

void PrintAscii()
{

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";
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";
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";
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\n";

std::cout << "                      AAA               MMMMMMMM               MMMMMMMMYYYYYYY       YYYYYYY '::::'   SSSSSSSSSSSSSSS  \n";                         
std::cout << "                     A:::A              M:::::::M             M:::::::MY:::::Y       Y:::::Y '::::' SS:::::::::::::::S \n";                        
std::cout << "                    A:::::A             M::::::::M           M::::::::MY:::::Y       Y:::::Y ':::''S:::::SSSSSS::::::S \n";                         
std::cout << "                   A:::::::A            M:::::::::M         M:::::::::MY::::::Y     Y::::::Y':::'  S:::::S     SSSSSSS \n";                         
std::cout << "                  A:::::::::A           M::::::::::M       M::::::::::MYYY:::::Y   Y:::::YYY''''   S:::::S             \n";                         
std::cout << "                 A:::::A:::::A          M:::::::::::M     M:::::::::::M   Y:::::Y Y:::::Y          S:::::S             \n";                         
std::cout << "                A:::::A A:::::A         M:::::::M::::M   M::::M:::::::M    Y:::::Y:::::Y            S::::SSSS          \n";                         
std::cout << "               A:::::A   A:::::A        M::::::M M::::M M::::M M::::::M     Y:::::::::Y              SS::::::SSSSS     \n";                         
std::cout << "              A:::::A     A:::::A       M::::::M  M::::M::::M  M::::::M      Y:::::::Y                 SSS::::::::SS   \n";                        
std::cout << "             A:::::AAAAAAAAA:::::A      M::::::M   M:::::::M   M::::::M       Y:::::Y                     SSSSSS::::S  \n";                         
std::cout << "            A:::::::::::::::::::::A     M::::::M    M:::::M    M::::::M       Y:::::Y                          S:::::S \n";                         
std::cout << "           A:::::AAAAAAAAAAAAA:::::A    M::::::M     MMMMM     M::::::M       Y:::::Y                          S:::::S \n";                         
std::cout << "          A:::::A             A:::::A   M::::::M               M::::::M       Y:::::Y              SSSSSSS     S:::::S \n";                         
std::cout << "         A:::::A               A:::::A  M::::::M               M::::::M    YYYY:::::YYYY           S::::::SSSSSS:::::S \n";                         
std::cout << "        A:::::A                 A:::::A M::::::M               M::::::M    Y:::::::::::Y           S:::::::::::::::SS  \n";                         
std::cout << "       AAAAAAA                   AAAAAAAMMMMMMMM               MMMMMMMM    YYYYYYYYYYYYY            SSSSSSSSSSSSSSS    \n";                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
                                                                                                                                    
std::cout << "EEEEEEEEEEEEEEEEEEEEEE   SSSSSSSSSSSSSSS         CCCCCCCCCCCCC               AAA               PPPPPPPPPPPPPPPPP   EEEEEEEEEEEEEEEEEEEEEE\n";
std::cout << "E::::::::::::::::::::E SS:::::::::::::::S     CCC::::::::::::C              A:::A              P::::::::::::::::P  E::::::::::::::::::::E\n";
std::cout << "E::::::::::::::::::::ES:::::SSSSSS::::::S   CC:::::::::::::::C             A:::::A             P::::::PPPPPP:::::P E::::::::::::::::::::E\n";
std::cout << "EE::::::EEEEEEEEE::::ES:::::S     SSSSSSS  C:::::CCCCCCCC::::C            A:::::::A            PP:::::P     P:::::PEE::::::EEEEEEEEE::::E\n";
std::cout << "  E:::::E       EEEEEES:::::S             C:::::C       CCCCCC           A:::::::::A             P::::P     P:::::P  E:::::E       EEEEEE\n";
std::cout << "  E:::::E             S:::::S            C:::::C                        A:::::A:::::A            P::::P     P:::::P  E:::::E             \n";
std::cout << "  E::::::EEEEEEEEEE    S::::SSSS         C:::::C                       A:::::A A:::::A           P::::PPPPPP:::::P   E::::::EEEEEEEEEE   \n";
std::cout << "  E:::::::::::::::E     SS::::::SSSSS    C:::::C                      A:::::A   A:::::A          P:::::::::::::PP    E:::::::::::::::E   \n";
std::cout << "  E:::::::::::::::E       SSS::::::::SS  C:::::C                     A:::::A     A:::::A         P::::PPPPPPPPP      E:::::::::::::::E   \n";
std::cout << "  E::::::EEEEEEEEEE          SSSSSS::::S C:::::C                    A:::::AAAAAAAAA:::::A        P::::P              E::::::EEEEEEEEEE   \n";
std::cout << "  E:::::E                         S:::::SC:::::C                   A:::::::::::::::::::::A       P::::P              E:::::E             \n";
std::cout << "  E:::::E       EEEEEE            S:::::S C:::::C       CCCCCC    A:::::AAAAAAAAAAAAA:::::A      P::::P              E:::::E       EEEEEE\n";
std::cout << "EE::::::EEEEEEEE:::::ESSSSSSS     S:::::S  C:::::CCCCCCCC::::C   A:::::A             A:::::A   PP::::::PP          EE::::::EEEEEEEE:::::E\n";
std::cout << "E::::::::::::::::::::ES::::::SSSSSS:::::S   CC:::::::::::::::C  A:::::A               A:::::A  P::::::::P          E::::::::::::::::::::E\n";
std::cout << "E::::::::::::::::::::ES:::::::::::::::SS      CCC::::::::::::C A:::::A                 A:::::A P::::::::P          E::::::::::::::::::::E\n";
std::cout << "EEEEEEEEEEEEEEEEEEEEEE SSSSSSSSSSSSSSS           CCCCCCCCCCCCCAAAAAAA                   AAAAAAAPPPPPPPPPP          EEEEEEEEEEEEEEEEEEEEEE\n\n";

}

//Printing out of introductory dialogue
void PrintIntroduction() {

    std::cout << "\n\nNeed to leave this place...\n";
    Sleep(1500);
    std::cout <<"I'm going to have to enter the correct access codes...\n";
    Sleep(2500);
    std::cout<<"Everyone, forgive me.\n\n";
    Sleep(1500);
    std::cout << "Darvin said that there are 3 digits to codes...\n\n";
    Sleep(3500);  
    std::cout << "And that I should add a space between each digit...\n\n";
    Sleep(4000);
    std::cout << "~ A hulking metallic door presents itself with a worn terminal interface attached to its side ~" << "\n\n";
    Sleep(4200);

}

// Different dialogue depending on what difficulty/level the player's at
void Dialogue(int Difficulty){

    switch(Difficulty) {
        case 2: 
                std::cout <<"~ She stops for a moment ~\n\n";
                Sleep(2000);
                std::cout<<"It's not hopeless after all... This is my... our, only chance.\n";
                Sleep(3000);
                std::cout<<"I've waited and prepared for this day...\n";
                Sleep(3000);
                std::cout <<"Deep breaths Amy, let's do this.\n\n";
                Sleep(3000);  
                std::cout << "~ While lurking through the cold corridors, another lock presents itself ~\n\n";
                Sleep(4000);
        break;
        case 3:
                std::cout <<"Alright, I think I'm getting closer to the pod.\n";
                Sleep(3500);
                std::cout<<"They'll all pay for what they're making us go through... I'll make them pay!\n\n";
                Sleep(3000);
                std::cout <<"~ No longer shaking but filled with determination, she continues to move on ~\n\n";
                Sleep(3500);
                std::cout <<"But where will I go after I escape? My whole life, I wa- \n\n";
                Sleep(2800); 
                std::cout <<"~ Like nails on a blackboard, the sound of a rickity sliding door startles the girl ~\n";
                Sleep(4200); 
                std::cout <<"~ THUMP ~\n";
                Sleep(800);
                std::cout <<"~ THUMP ~\n";
                Sleep(800); 
                std::cout <<"~ THUMP ~\n\n";
                Sleep(1000);    
                std::cout << "I, I..." << "\n\n";
                Sleep(1200);
                std::cout << "~ She scrambles for a hiding place ~" << "\n";
                Sleep(2500);
                std::cout << "~ She squeezes her slim frame in a nearby vent and holds her breath ~" << "\n";
                Sleep(3500);
                std::cout << "~ The heavy metallic footsteps grow heavier\n";
                Sleep(2700);
                std::cout<<"  and slowly dissipate ~\n\n";
                Sleep(3500);
                std::cout << "." << "\n\n";
                Sleep(2000);
                std::cout << "~ She moves her trembling hands away from her mouth ~" << "\n\n";
                Sleep(3500);
                std::cout << "Agh! I thought I was going to have a heart attack! No more hiding. Let's go..." << "\n";
                Sleep(3700);
                std::cout << "Alright. Another pesky lock." << "\n\n";
                Sleep(2000);
        break;
        case 4:
                std::cout <<"~ She cracks an unpleasant smile ~\n\n";
                Sleep(2000);
                std::cout<<"For once in my life, things are going MY way!\n";
                Sleep(3000);
                std::cout<<"This is too easy!\n";
                Sleep(2000);
                std::cout<<"Freedom...? I'm still here, confined to this tomb of a home, but I feel... in control... free...\n\n";
                Sleep(5500);
                std::cout <<"~ She continues to zip through the maze of hallways and dark rooms, avoiding any potential dangers in the process ~\n\n";
                Sleep(5500);
                std::cout <<"Heh. I've lived here my whole life. Slaving and rotting away. It's only natural I know it like the back of my hand. \n\n";
                Sleep(5500); 
                std::cout <<"~ She arrives at one of the station's emergency rooms ~\n";
                Sleep(3800); 
                std::cout <<"~ There are three escape pods facing the door's entrance. Each one looking worse than the last ~\n";
                Sleep(4500); 
                std::cout <<"~ The girl begins to break into one of the pods' computers. ~\n\n";
        break;
        case 5:
                std::cout<<"~ The pod's airtight lock swiftly opens ~\n\n";
                Sleep(3000);
                std::cout <<"I'm so close to leaving this hell hole! \n";
                Sleep(2500);
                std::cout<<"Gotta grab anything useful... who knows what I'll run into out there.\n";
                Sleep(4000);
                std::cout<<"Oh man... What have I gotten myself into?\n\n";
                Sleep(3000);
                std::cout <<"~ Her brow furrows ~\n\n";
                Sleep(2000);
                std::cout <<"This is it huh? I was so confident just a second ago. \n";
                Sleep(3000); 
                std::cout <<"I'm actually going to run away. Everyone is going to be so pissed...\n";
                Sleep(3600); 
                std::cout <<"I don't even know what's out there.\n";
                Sleep(2500); 
                std::cout <<"What if I'm eaten by some space monster?\n";
                Sleep(2500); 
                 std::cout <<"What if...\n";
                Sleep(800);
                std::cout <<"What if...\n";
                Sleep(900); 
                std::cout <<"What if.\n\n";
                Sleep(2200);    
                std::cout <<"But... I'm also doing this for them. We can't keep this up forever.\n";
                Sleep(2500);
                std::cout <<"There is no hope for us here... but there has to be some hope out there...\n";
                Sleep(2500);  
                std::cout <<"No more of this crap.\n\n";
                Sleep(2500);
                std::cout <<"~ The little pep talk helps her regain her composure ~\n\n";
                Sleep(4500);
                std::cout <<"And, for the final act... I need to gain access to the pod's computer.\n\n";
                Sleep(2500); 
        break;

        default: break;
    }

}

// Dialogue after the player has completed the game
void EndingDialogue()
{
    Sleep(2000);
    std::cout << "I guess I'm good at math when my life counts on it.\n";
    Sleep(3000);
    std::cout << "Finally, now let's not get picky.\n";
    Sleep(2500);
    std::cout << "~ With quick gestures she swipes her way into the pod's navigator ~\n\n";
    Sleep(2500);
    std::cout << "That rock seems suitable. I need to keep a low profile so anywhere but some thriving Ecumenopolis.\n\n";
    Sleep(5500);
    std::cout << "~ Numbers are hastily being punched into the escape pod's computer ~\n";
    Sleep(3500);
    std::cout << "~ The machine pauses for a moment before embarking on its journey ~\n\n";
    Sleep(3500);
    std::cout << "System:\"Plotting succesful. Taking off.\"\n\n";
    Sleep(3000);
    std::cout << "~ The pod's thrusters, now humming a tedious roar indicate that they are now active ~\n\n";
    Sleep(4000);
    std::cout << " !!!\n\n";
    Sleep(2200);
    std::cout << "~ A loud crackling noise accompanied by threatening tremors abruptly fill the tight space ~\n";
    Sleep(3700);
    std::cout << "~ Her body bolts to one side of the capsule in suprise ~\n\n";
    Sleep(3500);
    std::cout << "System:\"ERROR. ERROR. UNA-LE TO GO TO ----\".\n";
    Sleep(2500);
    std::cout << "System:\"DESTINATION HAS BEEN CHANGED TO\".\n";
    Sleep(2500);
    std::cout << "System:\"VENUTIA\".\n\n";
    Sleep(2000);
    std::cout << "~ Wearing an angry expression, her eyes open wide in disbelief ~\n\n";
    Sleep(3500);
    std::cout << "No! Stupid piece of junk!\n";
    Sleep(2500);
    std::cout << "Of all the places... you HAD to go for the Galaxy's goddamned melting pot!\n";
    Sleep(4500);
    std::cout << "System:\"WE APOLOGIZE FOR THE INCONVENIENCE.\"\n";
    Sleep(3300);
    std::cout << "System:\"VENUTIAN AUTHORITIES WILL BE NOTIFIED AT LANDING FOR YOUR SAFETY.\"\n\n";
    Sleep(4500);
    std::cout << "~ She slams her clenched fist onto the screen in frustration ~\n\n";
    Sleep(4500);
    std::cout << "Why thank you very much!\n";
    Sleep(2500);
    std::cout << "It's as if I've done nothing! I'll just be put into a cell the moment I arrive!\n";
    Sleep(5000); 
    std::cout << "It'll be more of the same...\n";
    Sleep(2000);
    std::cout << ".\n\n";
    Sleep(2000);
    std::cout << "TBC... Thank you for playing. \n\n";
    Sleep(5000);
    std::cout << ".\n\n";
    Sleep(2000);
    std::cout << "She actually did it.\n\n";
    Sleep(2300);
    std::cout << "~ A shadowy figure gazes upon the escape pod's flight from the emergency room's thick window ~\n";
    Sleep(4200);
    std::cout << "~ As it gets further away, the blackness of space is further brought into view ~\n\n";
    Sleep(4000);
    std::cout << "It's about time something interesting happened here.\n\n";
    Sleep(5000);



}

bool PlayGame(int Difficulty) 
{

    //Declare 3 number code

    const int CodeA = rand() % Difficulty + 1;
    const int CodeB = rand() % Difficulty + 1;
    const int CodeC = rand() % Difficulty + 1;

    const int CodeSum = CodeA + CodeB + CodeC;
    const int CodeProduct = CodeA * CodeB * CodeC;

    // Print CodeSum and CodeProduct to the terminal
    std::cout << "So this is a level " << Difficulty << " security lock.\n";
    Sleep(2000);
    std::cout << "Here, the numbers add-up to " << CodeSum << ",\n";
    Sleep(2000);
    std::cout << "And they multiply to give " << CodeProduct << ".\n";
    Sleep(2000);
    std::cout << "What should I enter...?\n";

    //Store player guess
    int GuessA, GuessB, GuessC;
    std::cin >> GuessA >> GuessB >> GuessC;
    Sleep(1000);
    std::cout << "Let's try " << GuessA << GuessB << GuessC << "." << "\n";

    int GuessSum = GuessA + GuessB + GuessC;
    int GuessProduct = GuessA * GuessB * GuessC;

    // Check if the player's guess is correct
    if (GuessSum == CodeSum && GuessProduct == CodeProduct) 
    {
        Sleep(1000);
        std::cout << ".\n\n";
        Sleep(1200);
        std::cout <<"~ A green light shines accompanied by a soft beep ~\n\n";
        Sleep(2500);
        std::cout << "I got through!\n\n";
        Sleep(2000);

        return true;
    } 

    else
    {
        Sleep(1000);
        std::cout << ".\n\n";
        Sleep(1500);
        std::cout << "~ An unpleasant screech is shouted from the console ~\n\n";
        Sleep(2500);
        std::cout << "Damn! I need to try again.\n\n";
        Sleep(2200);

        return false;
    }
    
}
1 Like

Privacy & Terms