Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* This was where my name and contact shit was
- * " "
- * Use a g++ compiler to compile or enter "g++ menu.cpp -o app" then run with "./app"
- */
- #include <iostream>
- #include <string.h>
- #include <ctime>
- #include <cstdlib>
- #include <string>
- #include <fstream>
- using namespace std;
- void newGame(string name);
- void loseScreen(int steps, int etime, double money, int intelligence, int bowserVictory, string name);
- class HighScore
- {
- private:
- ifstream inStream;
- ofstream outStream;
- string listOfNames[10];
- int listOfScores[10];
- public:
- HighScore()
- {
- cout << "Eating Pancakes\n" << endl;
- }
- void readFromFile()
- {
- inStream.open("highscore.txt");
- if(inStream.fail())
- {
- cout << "File Not Found.\n" << endl;
- }
- string name = "";
- int score = 0;
- int count = 0;
- string scoreBoth = "";
- while(inStream >> name >> score)
- {
- cout << name << " " << score << endl;
- count++;
- }
- if(count < 10)
- {
- cout << "No more scores to display.\n" << endl;
- }
- inStream.close();
- }
- bool writeToFile(string writeName, int writeScore)
- {
- outStream.open("highscore.txt");
- if(outStream.fail())
- {
- cout << "Error, File not found.\n" << endl;
- }
- outStream << writeName << " " << writeScore << endl;
- outStream.close();
- return true;
- }
- };
- class Encounter
- {
- protected:
- int encounterChance;
- int selection;
- public:
- int selectEncounter()
- {
- encounterChance = rand() % 100 + 1;
- if(encounterChance >= 2 && encounterChance <= 20) //Nothing
- {
- selection = 1;
- return selection;
- }
- else if(encounterChance > 20 && encounterChance <= 45) //Puzzle
- {
- selection = 2;
- return selection;
- }
- else if(encounterChance > 45 && encounterChance <= 65) //Professor
- {
- selection = 3;
- return selection;
- }
- else if(encounterChance > 65 && encounterChance <= 85) //Grad Student
- {
- selection = 4;
- return selection;
- }
- else if(encounterChance > 85 && encounterChance <= 95) //Papers
- {
- selection = 5;
- return selection;
- }
- else if (encounterChance > 95 && encounterChance <= 100) //Grunt Work
- {
- selection = 6;
- return selection;
- }
- else if (encounterChance == 1) //Prize
- {
- selection = 7;
- return selection;
- }
- }
- int displayEncounter(int i, int& etime, double& money, int& intelligence)
- {
- int tempTime = 0;
- int tempMoney = 0;
- int tempInt = 0;
- switch(i)
- {
- case 1:
- {
- cout << "And nothing happens.\n" << endl;
- tempTime = rand() % 1;
- etime -= tempTime;
- break;
- }
- case 2:
- {
- cout << "What's this? A puzzle of some sort?\n" << endl;
- break;
- }
- case 3:
- {
- cout << "Oh no! A professor has made eye contact! It looks like he wants to battle!" << endl;
- cout << "Professor sends out, Ungraded Mandatory Assignment!" << endl;
- cout << "Ungraded Mandatory Assignment attacks Trainer Student! It uses Tedious! Its super effective!" << endl;
- tempTime = rand() % 3 + 1;
- etime -= tempTime;
- cout << "You lost, " << tempTime << " time." << endl;
- intelligence += tempInt;
- cout << " You gain, " << tempInt << " intelligence.\n" << endl;
- break;
- }
- case 4:
- {
- cout << "Shambling around in the darkness a fellow Grad Student stumbles into view." << endl;
- cout << "You greet him with the traditional awkward stare-down." << endl;
- tempTime = rand() % 3 + 1;
- etime -= tempTime;
- cout << "You lost, " << tempTime << " time from the stare-down show-down.\n" << endl;
- break;
- }
- case 5:
- {
- cout << "A gust of wind blows some papers into your face." << endl;
- cout << "Enraged you bust out your red pen and viciously tackle this stack of unruly pages." << endl;
- tempTime = rand() % 3 + 1;
- etime -= tempTime;
- cout << "You lost, " << tempTime << " time." << endl;
- tempMoney = rand() % 2 + 1;
- money += tempMoney;
- cout << "You gained, $" << tempMoney << " money from grading those tests.\n" << endl;
- break;
- }
- case 6:
- {
- cout << "A giant wall forms infront of you. Roughly taped to its surface is a stack of papers along with a note:" << endl;
- cout << "To proceed further you must finish and file all of these papers in the magical desk of unended servitude." << endl;
- tempTime = rand() % 3 + 1;
- tempInt = rand() % 2 + 1;
- etime -= tempTime;
- intelligence -= tempInt;
- cout << "After finishing the grind you feel a bit dumber and time has flown by." << endl;
- cout << "You lost: " << tempTime << " time." << endl;
- cout << "You lost: " << tempInt << " intelligence.\n" << endl;
- break;
- }
- case 7:
- {
- cout << "A gold bar descends from the heavens. This is a gift from the all-seer known only to some as... boss." << endl;
- money += 100;
- cout << "You gain one-hundred dollars. I can't believe it!\n" << endl;
- break;
- tempTime = rand() % 2 + 1;
- etime -= tempTime;
- }
- }
- return i;
- }
- };
- class Puzzle : protected Encounter
- {
- private:
- bool correctAnswer;
- int puzzleChoice;
- public:
- int puzzleNumber()
- {
- puzzleChoice = rand() % 100 + 1;
- if(puzzleChoice >= 1 && puzzleChoice <= 20)
- {
- selection = 1;
- return selection;
- }
- else if(puzzleChoice > 20 && puzzleChoice <= 40)
- {
- selection = 2;
- return selection;
- }
- else if(puzzleChoice > 40 && puzzleChoice <= 60)
- {
- selection = 3;
- return selection;
- }
- else if(puzzleChoice > 60 && puzzleChoice <= 80)
- {
- selection = 4;
- return selection;
- }
- else if(puzzleChoice > 80 && puzzleChoice <= 100)
- {
- selection = 5;
- return selection;
- }
- }
- void displayPuzzle(int i, int& etime, double& money, int& intelligence)
- {
- int tempTime = rand() % 2 + 1;
- double tempMoney = 0;
- int tempInt = 0;
- int userAnswer = 0;
- switch(i)
- {
- case 1:
- {
- cout << "What is the capital of Greenland? " << endl;
- cout << "1) Nuuk" << endl;
- cout << "2) Ittoqqortoormiit" << endl;
- cout << "3) Qeqertarsuatsiaat" << endl;
- cout << "4) Kangerluarsoruseq\n" << endl;
- cin >> userAnswer;
- if(userAnswer == 1)
- {
- correctAnswer = true;
- cout << "Correct, the Capital of Greenland is Nuuk.\n" << endl;
- }
- else
- {
- correctAnswer = false;
- cout << "This one was a bit tricky, and you got it wrong.\n" << endl;
- }
- break;
- }
- case 2:
- {
- cout << "What was the new weapon introduced at the battle of Somme?" << endl;
- cout << "1) U-boat" << endl;
- cout << "2) Tank" << endl;
- cout << "3) Poison Gas" << endl;
- cout << "4) Mankind itself.\n" << endl;
- cin >> userAnswer;
- if(userAnswer == 2)
- {
- correctAnswer = true;
- cout << "Somewhat correct, while plans for tanks had been proposed before, this was the first use of it.\n" << endl;
- }
- else if(userAnswer == 4)
- {
- correctAnswer = false;
- cout << "Go get a job Hippie!\n" << endl;
- }
- else
- {
- correctAnswer = false;
- cout << "Incorrect Answer, try again next time.\n" << endl;
- }
- break;
- }
- case 3:
- {
- cout << "In the epic Jeopardy fight between NIXON and DIXON, what did Larry answer to the question, " << endl;
- cout << "The true vampire bat is native to this continent, not Translyvania." << endl;
- cout << "1) SO*/?/?/?/?/?*/?/?" << endl;
- cout << "2) Germany" << endl;
- cout << "3) France" << endl;
- cout << "4) South Africa\n" << endl;
- cin >> userAnswer;
- if(userAnswer == 1)
- {
- correctAnswer = true;
- cout << "In true comedic fashion the Game Grumps and their games deliver.\n" << endl;
- }
- else
- {
- correctAnswer = false;
- cout << "Game Grumps. Look it up, Live life happy.\n" << endl;
- }
- break;
- }
- case 4:
- {
- cout << "In the Google search engine, what is the phrase that you can type into the search bar that causes a script to run." << endl;
- cout << "1) Where is Chuck Norris" << endl;
- cout << "2) Do a barrel Roll" << endl;
- cout << "3) Do you even lift" << endl;
- cout << "4) When does the narwhal bacon\n" << endl;
- cin >> userAnswer;
- if(userAnswer == 2)
- {
- correctAnswer = true;
- cout << "Try it yourself if you don't believe me. Just not on IE.\n" << endl;
- }
- else
- {
- correctAnswer = false;
- cout << "Stair Fax\n" << endl;
- }
- break;
- }
- case 5:
- {
- cout << "Is the answer to this question no?" << endl;
- cout << "1) Yes" << endl;
- cout << "2) No\n" << endl;
- cin >> userAnswer;
- if(userAnswer == 1 || userAnswer == 2)
- {
- correctAnswer = true;
- cout << "I'm not that mean... am I?\n" << endl;
- }
- else
- {
- correctAnswer = false;
- cout << "Yes, No, Yes, No, Yes, No, Yes, No, Yes, No...\n" << endl;
- }
- break;
- }
- }
- if(correctAnswer == true)
- {
- tempTime = rand() % 2 + 1;
- tempInt = rand() % 2 + 1;
- tempMoney = rand() % 3 + 1;
- intelligence += tempInt;
- money += tempMoney;
- etime -= tempTime;
- cout << "You've beaten the puzzle! You find a few pennies deposit themselves from the ceiling and onto your head." << endl;
- cout << "This minor severe head trauma has somehow made you smarter!\n" << "Intelligence Gain: " << tempInt;
- cout << " Money gain: $" << tempMoney << " Time Lost: " << tempTime << "\n" << endl;
- }
- else
- {
- tempTime = rand() % 2 + 2;
- tempInt = rand() % 4 + 3;
- tempMoney = rand() % 10 + 2;
- intelligence -= tempInt;
- money -= tempMoney;
- etime -= tempTime;
- cout << "The puzzle has bested you! The walls begin to close in on you Indian Jones style! You quickly throw your money at them to get them to stop!" << endl;
- cout << "Unfortunately you also hit your head on the now lowered ceiling." << "Money Lost: $" << tempMoney << "\n" << " Intelligence Lost: " << tempInt << endl;
- cout << "Time lost: " << tempTime << "\n" << endl;
- }
- }
- };
- int main()
- {
- string name = "";
- int userChoice = 0;
- int checkChoice = 0;
- HighScore highscore;
- cout << "Hello Traveler; Before we get started, What is your name? ";
- cin >> name;
- cout << "\n";
- cout << "\n";
- cout << "======================================================================================\n";
- cout << "Welcome, " << name << " to a text based simulator of a real college experience." << endl;
- cout << "======================================================================================\n\n";
- while(userChoice != 3)
- {
- do
- {
- userChoice = 0;
- cout << "1) Start a New Game of !" << endl;
- cout << "2) View top 10 High Scores" << endl;
- cout << "3) Quit" << endl;
- cout << "Please choose an option: ";
- cin >> userChoice;
- }
- while(userChoice != 1 && userChoice != 2 && userChoice != 3); //Needs Fixing
- switch(userChoice)
- {
- case 1:
- {
- newGame(name);
- break;
- }
- case 2:
- {
- highscore.readFromFile();
- break;
- }
- case 3:
- {
- cout << "Goodbye." << endl;
- return 0;
- break;
- }
- }
- }
- }
- void newGame(string name)
- {
- int intelligence = 0;
- double money = 0;
- int etime = 0;
- int steps = 20;
- int actionChoice = 0;
- int tempInt = 0;
- int tempTime = 0;
- double tempMoney = 0;
- string userQuit = "";
- string actionCheck = "";
- string n = name;
- int bowserChoice = 0;
- int bowserDodgeChoice = 0;
- int bowserAttackChoice = 0;
- int bowserItemChoice = 0;
- bool gameOver = false;
- int bowserVictory = 0;
- cout.setf(ios::fixed);
- cout.setf(ios::showpoint);
- cout.precision(2);
- srand(time(0));
- intelligence = rand() % 18 + 8;
- etime = rand() % 6 + 34; //review time during testing
- money = rand() % 11 + 5;
- cout << "Entering the game..." << endl;
- cout << "\n";
- cout << "You have:" << endl;
- cout << "\n";
- cout << "Intelligence: " << intelligence << endl;
- cout << "Time: " << etime << endl;
- cout << "Money: $" << money << endl;
- cout << "\n";
- while(actionChoice != 5 && !gameOver)
- {
- do
- {
- if(money <= 0 || intelligence <= 0 || etime <=0 || steps == 0)
- {
- gameOver = true;
- loseScreen(steps, etime, money, intelligence, bowserVictory, n);
- }
- else
- {
- cout << "You are " << steps << " steps from the goal. Time left: " << etime << "." << endl;
- cout << "\n";
- cout << "1) Move forward (lose time, could be FUN...)" << endl;
- cout << "2) Read technical papers (boosts intelligence, lose time)" << endl;
- cout << "3) Search for loose change (gain money, lose time)" << endl;
- cout << "4) View character (boosts EGO, lose SELF RESPECT)" << endl;
- cout << "5) Quit the game (Do I really have to explain this one?)" << endl;
- cout << "\n";
- cout << "Please chose an action: ";
- cin >> actionChoice;
- }
- }
- while(actionChoice != 1 && actionChoice != 2 && actionChoice != 3 && actionChoice != 4 && actionChoice != 5);
- if(!gameOver)
- {
- switch(actionChoice)
- {
- case 1:
- {
- int puzzleCheck = 0;
- if(etime >= 20)
- {
- cout << "You take some tentative steps forward down the dark... hallway.\n" << endl;
- steps = steps - 1;
- Encounter gameEncounter;
- Puzzle gamePuzzle;
- puzzleCheck = gameEncounter.displayEncounter(gameEncounter.selectEncounter(), etime, money, intelligence);
- if(puzzleCheck == 2)
- {
- gamePuzzle.displayPuzzle(gamePuzzle.puzzleNumber(), etime, money, intelligence);
- }
- }
- else if(etime < 20 && etime > 10)
- {
- cout << "You start to briskly... hop, down the corridor... time starts to nag you.\n" << endl;
- steps = steps - 1;
- Encounter gameEncounter;
- Puzzle gamePuzzle;
- puzzleCheck = gameEncounter.displayEncounter(gameEncounter.selectEncounter(), etime, money, intelligence);
- if(puzzleCheck == 2)
- {
- gamePuzzle.displayPuzzle(gamePuzzle.puzzleNumber(), etime, money, intelligence);
- }
- }
- else if(etime <= 10)
- {
- cout << "Mentally you start to hear the Super Mario World danger theme, this can only mean one thing..." << endl;
- cout << " Okay, maybe two... But its more likely time is running out than you'll be attacked by Bowser.. I think.\n" << endl;
- if(n == ("Mario") || n == ("Luigi") || n == ("mario") || n == ("luigi"))
- {
- cout << "Bowser appears! He throws a giant boulder at you! Quick, react!" << endl;
- cout << "1) Dodge!" << endl;
- cout << "2) Attack!" << endl;
- cout << "3) Item!" << endl;
- cout << "Action: ";
- cin >> bowserChoice;
- switch(bowserChoice)
- {
- case 1:
- {
- cout << "You barely manage to squeeze by the boulder in this narrow hallway!";
- cout << "Now you go straight for Bowser!" << endl;
- cout << "1) Jump on his head!" << endl;
- cout << "2) Fire punch!" << endl;
- cout << "Action: ";
- cin >> bowserDodgeChoice;
- switch(bowserDodgeChoice)
- {
- case 1:
- {
- cout << "You leap forth into the air majestically, for a plumber." << endl;
- cout << "And promply land on the Koopa King's Spiked Shell. Ouch..." << endl;
- cout << "Game Over.\n\n";
- gameOver = true;
- loseScreen(steps, etime, money, intelligence, bowserVictory, n);
- break;
- }
- case 2:
- {
- cout << "You wind up that blast of fire-y plumber magic." << endl;
- cout << "Landing it dead center, the Koopa King is going to become the Fried Fiend." << endl;
- cout << "You've saved the Mushroom Kingdom once again! You WIN!\n\n";
- bowserVictory = 1;
- gameOver = true;
- loseScreen(steps, etime, money, intelligence, bowserVictory, n);
- break;
- }
- }
- break;
- }
- case 2:
- {
- cout << "You break through that rocky obstruction, but your fist is a bit sore!";
- cout << "You've got to act fast!" << endl;
- cout << "1) Somersault Kick!" << endl;
- cout << "2) Hammer!" << endl;
- cout << "Action: ";
- cin >> bowserAttackChoice;
- switch(bowserAttackChoice)
- {
- case 1:
- {
- cout << "With a running start-up you leap towards your nemisis!" << endl;
- cout << "You land your kick square in his jaw and send that reptile reeling!" << endl;
- cout << "You've saved the Mushroom Kingdom once again! You WIN!\n\n";
- bowserVictory = 1;
- gameOver = true;
- loseScreen(steps, etime, money, intelligence, bowserVictory, n);
- break;
- }
- case 2:
- {
- cout << "You lift your trusty hammer and swing it around towards the boss!" << endl;
- cout << "Unfortunately you lack the force due to your hurt hand to harm the heinous hide!" << endl;
- cout << "Bowser strikes back viciously!" << endl;
- cout << "Game Over.\n\n";
- gameOver = true;
- loseScreen(steps, etime, money, intelligence, bowserVictory, n);
- break;
- }
- }
- break;
- }
- case 3:
- {
- cout << "You break out the big guns with your POW block!";
- cout << "Now that the way is clear you've got a clean shot on that Bulky Bowser!" << endl;
- cout << "1) Earthquake!" << endl;
- cout << "2) Sleepy Sheep!" << endl;
- cout << "Action: ";
- cin >> bowserItemChoice;
- switch(bowserItemChoice)
- {
- case 1:
- {
- cout << "You toss out Earthquake at the evil lord!" << endl;
- cout << "Unfortunately for you, while you were rummaging through your bag King Koopa climbed in his Koopa Clown Car!" << endl;
- cout << "Bowser menacingly runs you down!" << endl;
- cout << "Game Over.\n\n";
- gameOver = true;
- loseScreen(steps, etime, money, intelligence, bowserVictory, n);
- break;
- }
- case 2:
- {
- cout << "You toss out the most fearsome weapon in your arsenal!" << endl;
- cout << "The fluffy sleepy sheep spread their sleepyness all around!";
- cout << " Not even the fearsome Koopa King can resist the eternal sleep!" << endl;
- cout << "You have condemned Bowser to a fate worse than death. You WIN!\n\n";
- bowserVictory = 1;
- gameOver = true;
- loseScreen(steps, etime, money, intelligence, bowserVictory, n);
- break;
- }
- }
- break;
- }
- }
- }
- else
- {
- cout << "You flee down the passageway, frightened of the mental clock that keeps ticking.\n" << endl;
- steps = steps - 1;
- Encounter gameEncounter;
- Puzzle gamePuzzle;
- puzzleCheck = gameEncounter.displayEncounter(gameEncounter.selectEncounter(), etime, money, intelligence);
- if(puzzleCheck == 2)
- {
- gamePuzzle.displayPuzzle(gamePuzzle.puzzleNumber(), etime, money, intelligence);
- }
- }
- }
- break;
- }
- case 2:
- {
- cout << "You find some technical papers...\n";
- if(intelligence < 12)
- {
- cout << "You can't really make out this techno-bable. So you eat the papers."<< endl;
- tempInt = rand() % 3 + 1;
- intelligence += tempInt;
- tempTime = rand() % 1 + 1;
- etime -= tempTime;
- cout << " Oh well, you let the information digest. Intelligence gain: " << tempInt;
- cout << " Time lost: " << tempTime << "\n" << endl;
- }
- else if(intelligence < 20 && intelligence >= 12)
- {
- cout << "Ah, it appears to be some papers on Quantum dimensional flux capacitors." << endl;
- tempInt = rand() % 3 + 1;
- intelligence += tempInt;
- tempTime = rand() % 1 + 1;
- etime -= tempTime;
- cout << " ...No I don't know what that means either. Intelligence gain: " << tempInt;
- cout << " Time lost: " << tempTime << "\n" << endl;
- }
- else if(intelligence >= 20)
- {
- cout << "These papers appear to be written in the scrawl of some pitiable under-graduate student." << endl;
- tempInt = rand() % 2;
- intelligence += tempInt;
- tempTime = rand() % 1 + 1;
- etime -= tempTime;
- cout << " You take some time to mock their lack of understanding of the mesosphere and symbiotic silicon-based pseudo-organic AI." << endl;
- cout << "This doesn't really seem to help your considerable intelligence. Intelligence gain: " << tempInt;
- cout << " Time lost: " << tempTime << "\n" << endl;
- }
- break;
- }
- case 3:
- {
- cout << "Like every college student, you find yourself face to face with your greatest nemisis... lack of funds." << endl;
- if(money < 6)
- {
- cout << "Scrounging around like the street urchin you are, you manage to find some shinies..." << endl;
- tempMoney = rand() % 3;
- money += tempMoney;
- tempTime = rand() % 1 + 1;
- etime -= tempTime;
- cout << "You've never seen coins like this, or coins at all for that matter, you gain, $" << tempMoney;
- cout << " Time lost: " << tempTime << "\n" << endl;
- }
- else if(money > 6 && money < 14)
- {
- cout << "You have a few coins in your pocket, but you know you can always use more..." << endl;
- tempMoney = rand() % 3;
- money += tempMoney;
- tempTime = rand() % 1 + 1;
- etime -= tempTime;
- cout << "You've managed to scrounge up some old bills, I hope they're current! You gain, $" << tempMoney;
- cout << " Time lost: " << tempTime << "\n" << endl;
- }
- else if(money >= 14)
- {
- cout << "Greed has completely overtaken you. You collosal wealth, for a college student, weighs you down considerably, but you must have more..." << endl;
- tempMoney = rand() % 3;
- money += tempMoney;
- tempTime = rand() % 2 + 1;
- etime -= tempTime;
- cout << "You barely manage to fill your overstuffed pockets, the immense weight of the coins impeedes your progress. You gain, $" << tempMoney;
- cout << " Time lost: " << tempTime << "\n" << endl;
- }
- break;
- }
- case 4:
- {
- if(intelligence == 1)
- {
- cout << "You..?" << endl;
- cout << "Intelligence: You see... a station." << endl;
- cout << "Time: ...a smiling... face." << endl;
- cout << "Money: ...HONK." << endl;
- cout << "\n";
- }
- else
- {
- cout << "You examine yourself: " << endl;
- cout << "Intelligence: " << intelligence << endl;
- cout << "Time: " << etime << endl;
- cout << "Money: $" << money << endl;
- cout << "\n";
- }
- break;
- }
- case 5:
- {
- cout << "Do you really want to quit? Y/N: ";
- cin >> userQuit;
- if(userQuit == ("Y") || userQuit == ("y") || userQuit == ("Yes") || userQuit == ("yes"))
- {
- loseScreen(steps, etime, money, intelligence, bowserVictory, n);
- }
- else if(userQuit == ("N") || userQuit == ("n") || userQuit == ("No") || userQuit == ("no"))
- {
- cout << "Then don't jump the gun!" << endl;
- }
- else if(userQuit == ("Banana"))
- {
- cout << "You hear a voice in your head... " << endl;
- int i = 0;
- do
- {
- cout << "HONK.";
- i++;
- }
- while(i < 500);
- cout << endl;
- loseScreen(steps, etime, money, intelligence, bowserVictory, n);
- }
- else
- {
- cout << "What..? Are instructions really that hard to follow?" << endl;
- cout << "\n";
- cout << "...";
- cout << "\n";
- cout << "You know... just for that. Game Over." << endl;
- loseScreen(steps, etime, money, intelligence, bowserVictory, n);
- }
- break;
- }
- }
- }
- }
- }
- void loseScreen(int steps, int etime, double money, int intelligence, int bowserVictory, string name)
- {
- int score = 0;
- HighScore highscore;
- if(steps == 0)
- {
- cout << "Congratulations, you managed to conquer the College of Winterhold! All hail the new High King of Skyrim!" << endl;
- score = (int)money * intelligence * etime;
- cout << "Your score is: " << score << "\n\n";
- highscore.writeToFile(name, score);
- }
- else if(money <= 0)
- {
- cout << "Your body is as devoid of soul as your wallet is of cash." << endl;
- cout << "Oh did I forget to mention the two were linked? Better luck next time." << endl;
- cout << "It looks like the perils of College have claimed another.\n\n";
- }
- else if(intelligence <=0)
- {
- cout << "You feel strange. You feel Nervous. You start convulsing violently! You twitch." << endl;
- cout << "You mutate into the CLOWN! HONK." << endl;
- cout << "It looks like the perils of College have claimed another.\n\n";
- }
- else if(etime <= 0)
- {
- cout << "You see the passageway ahead seal off forever. And such is your fate. To be entombed by the college." << endl;
- cout << "Also your glasses break. Such a shame, there was finally time." << endl;
- cout << "It looks like the perils of College have claimed another.\n\n";
- }
- else if(bowserVictory == 1)
- {
- cout << "Congratulations! You found an easter egg!\n" << endl;
- cout << "And in addition to that you managed to save the Mushroom Kingdom!\n" << endl;
- cout << "Here's what your score might have looked like had you choosen a different name: ";
- cout << ((int)money * intelligence * (steps - etime)) << endl;
- }
- else
- {
- cout << "Perhaps a savior will come for the Mushroom Kingdom some day." << endl;
- }
- cout << "Thanks for playing!\n\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement