NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

// Example program
#include <iostream>
#include <string>

using namespace std;

char StayOrLeaveTroy;
char StayOrLeaveTroyAgain;
char SiegeOrNowLessMen;
char StayOverNightOrNotLessMen;
char TakeOrLeaveFruitLessMen;
char ExploreIslandOrLeaveLessMen;
char LeaveCaveOrGetALookAtCyclopsLessMen;
char ShapenSpearToBlindCyclopsOrWaitAndDieLessMen;
char RideUnderSheepOrMakeRunForItLessMen;
char TurnAndSayOnlyTwoLessMen;
char SleepTillIthacaOrStayAwakeLessMenWithAnger;
char SleepTillIthacaOrStayAwakeLessMenWithoutAnger;
char EnterOrScopeOutLessMen;
char TurnAndSayOnlySixDeadLessMen;
char SleepTillIthacaOrStayAwakeLessMenWithoutAngerTwoMen;
char SleepTillIthacaOrStayAwakeLessMenWithAngerTwoMen;
char EnterOrScopeOutOtherLessMen;
char AttackStratLessMenOnlySon;
char AttackStratLessMenOnlySon2;

int main() //COMP START OF GAME
{
cout << "Welcome to The Odyssey Choose Your Own Adventurenn";
system("PAUSE");
cout << "nYou are Odysseus and have just sieged Troy!n"; //Start of game
cout << "Do you want to stay or leave Troy?n"; //First Question
cout << "1) Stay in Troyn" << "2) Leave Troy and head to Ithacan"; //First Answers
cin >> StayOrLeaveTroy;
//Answer to Staying to Leaving Troy
if (StayOrLeaveTroy == '1')
{
cout << "nYou stay in Troy and feast, you long to go back to Ithacan"; //Statement
cout << "1) Stay in Troy for the rest of your lifen" << "2) Leave Troy and head to Ithacan"; //Questions after Stay_or_Leave_Troy
cin >> StayOrLeaveTroyAgain;

if (StayOrLeaveTroyAgain == '1')
{
cout << "nYou spend every second of your new life thinking about your wife and sonn" << "You last feeling is regret...n" << "You are deadn"; //END
}

//Less Men Lines
else if (StayOrLeaveTroyAgain == '2')
{
cout << "nYou leave Troy but with less men, you have a mere 30 than the 86 you would haven";
cout << "You head to the Island of Ismarus, home of the Ciconiansn"; //Statement
cout << "The Ciconians joined the side of Trojans so your men want to siege itn"; //Statement
cout << "1) Siege their village and conquer the landn" << "2) Convince your men to stand back and leave to Ithacan";
cin >> SiegeOrNowLessMen;

//Attack Less Men DEAD
if (SiegeOrNowLessMen == '1')
{
cout << "nYou attack the village only to lose 20 men within seconds, you try and run awayn" << "You get shot in the back with an arrown" << "You are deadn";
}

//Stand Back Less Men
else if (SiegeOrNowLessMen == '2')
{
cout << "nYou and your men stand back and decide to retreatn" << "It is night and your men want to stay the nightn" << "1) Stay overnightn" << "2) Leave right awayn";
cin >> StayOverNightOrNotLessMen;

//Stay on Beach Less Men DEAD
if (StayOverNightOrNotLessMen == '1')
{
cout << "nYou sleep on the beach and wake up to 18 men dead as the Ciconians found youn" << "They fight against the men you have left and leave you lastn" << "They impale you with a spearn" << "You are deadn";
}

//Hit Lotus Eaters Less Men
else if (StayOverNightOrNotLessMen == '2')
{
cout << "nYou leave right away and as you leave a storm surges you off coursen" << "You hit a distant land and are welcomed by nativesn" << "To show hospitality they offer a fruitn" << "All your men take the fruit and they forget about Ithaca and there questn" << "They offer you somen" << "1) Take the fruitn" << "2) Don't take the fruitn";
cin >> TakeOrLeaveFruitLessMen;

//Take Fruit Less Men DEAD
if (TakeOrLeaveFruitLessMen == '1')
{
cout << "nYou take the friut and on only minutes you forget about IthacanYou live the rest of your life therenYou are deadn";
}

//Don't take Fruit and Live Less Men
else if (TakeOrLeaveFruitLessMen == '2')
{
cout << "nYou don't take the fruit and drag your crew back to the shipnYou continue on you journey and soon the effects wear offnYou hit an island and you see in the distance a Cyclops cooking a mealnYou are running low on suppliesn1) Explore the island and look for suppliesn2) Continue to Ithacan";
cin >> ExploreIslandOrLeaveLessMen;

//NOT DONE NOT DONE
if (ExploreIslandOrLeaveLessMen == '2')
{
cout << "nYou head straight to IthacanOn the way half of your crews dies of starvation and the wine amount grows less and lessnYou hit land near starvation as you run of the ship looking for foodnRunning to your palace";
}

//Go To Cave and Gather Supplies
else if (ExploreIslandOrLeaveLessMen == '1')
{
cout << "nYou and all your men go explorenYou find a cave full of supplies you grab all you cann1) Stay to get a good look at the Cyclopsn2) Leave with what you haven";
cin >> LeaveCaveOrGetALookAtCyclopsLessMen;

//Leave with food and supplies without seeing Cyclops Less Men DEAD
if (LeaveCaveOrGetALookAtCyclopsLessMen == '2')
{
cout << "nYou leave the cave with what you could grabnYou board your ship with your men and head to IthacanAfter weeks of travels you and your men hit IthacanOut of joy you run for your palace without hesitationnWhen you run in there, foolishly, the suitors see younThey all attack you and beat you into a bloody pulpnYou are dead";
}
else if (LeaveCaveOrGetALookAtCyclopsLessMen == '1')
{
cout << "nYou stay until the Cyclops returns and closes the giant door with a massive rock He then lights a fire then sees Odysseus and his mennYou state that he has to obey the rules of the gods but insteadnUnexpectedly he doesn't follow these rules and says he is not afraid of the godsnHe then proceeds to eat 2 of your men and locks you and the rest of your men in a cagenYou are trapped and cannot escapen";
cout << "1) Get the Cyclops drunk and sharpen a spear to blind him as he sleeps n2) Wait until you can get awayn";
cin >> ShapenSpearToBlindCyclopsOrWaitAndDieLessMen;

//Dont blind Cyclops Less Men DEAD
if (ShapenSpearToBlindCyclopsOrWaitAndDieLessMen == '2')
{
cout << "nYou tell your men to wait but that was a mistakenYou and all your men turn to breakfast, lunch, and dinnernYou are deadn";
}

//You get the Cyclops drunk and blind him Less Men
else if (ShapenSpearToBlindCyclopsOrWaitAndDieLessMen == '1')
{
cout << "nYou give the Cyclops enough wine that he passes out without caging you firstnYou and your men sharpen a wooden staff into a spear and rip it into his only eyenIn a sudden scream the Cyclops runs to open the cave door and call for helpnHe waits at the door for you and your men to try and escape sop he can trap youn";
cout << "1) Ride on the under belly of the sheep the Cyclops had in his caven2) Make a run for itn";
cin >> RideUnderSheepOrMakeRunForItLessMen;

//Ride under sheep Less Men
if (RideUnderSheepOrMakeRunForItLessMen == '1')
{
cout << "nYou and your men ride under the sheep with only 6 men deadnYou run to your ship and sail awaynYou turn back and sayn1) I am Odysseus you foul creature!n2) The gods will exact revenge on you for this!n";
cin >> TurnAndSayOnlySixDeadLessMen;

if (TurnAndSayOnlySixDeadLessMen == '1')
{
cout << "nThe Cyclops throws a rock towards your ship and misses by a hairnHe then sits and cries to his father, Poseidon, for revenge as you sail awaynYou sail and hit land at the home of Aeolus, ruler of windsnHe presents you with the winds that would blow him of course and stirs up a gust to blow him homenWithin 10 days of this incounter you have had no sleep buy you see Ithaca in sightn1) Sleep until you reach Itahcan2) Try to stay awake until you get there";
cin >> SleepTillIthacaOrStayAwakeLessMenWithoutAnger;
}
}


else if (RideUnderSheepOrMakeRunForItLessMen == '2')
{
cout << "nYou and your men run under the Cyclops's legs and only you and 2 other men make it outnYou run to your ship and sail awaynYou turn back and sayn1) I am Odysseus you foul creature!n2) The gods will exact revenge on you for this!n";
cin >> TurnAndSayOnlyTwoLessMen;

if (TurnAndSayOnlyTwoLessMen == '1')
{
cout << "nThe Cyclops throws a rock towards your ship and misses by a hairnHe then sits and cries to his father, Poseidon, for revenge as you sail awaynYou sail and hit land at the home of Aeolus, ruler of windsnHe presents you with the winds that would blow him of course and stirs up a gust to blow him homenWithin 10 days of this incounter you have had no sleep buy you see Ithaca in sightn1) Sleep until you reach Itahcan2) Try to stay awake until you get theren";
cin >> SleepTillIthacaOrStayAwakeLessMenWithAngerTwoMen;

if (SleepTillIthacaOrStayAwakeLessMenWithAngerTwoMen == '1')
{
cout << "nYou fall asleep and wake up to your men opening the sacknThey both fly off the ship and you are without strength and cannot close the sacknYou are thrown hundreds of feet in the air and hit the waternYou are deadn";

}
else if (SleepTillIthacaOrStayAwakeLessMenWithAngerTwoMen == '2')
{
cout << "nYou stay awake till you hit land, soon as you dock you fall asleepnYou men are gone when you wake so you wander till you reach your palacen1) Enter the palace to see your familyn2) Scope out the arean";
cin >> EnterOrScopeOutOtherLessMen;
//DEAD
if (EnterOrScopeOutOtherLessMen == '1')
{
cout << "nYou enter the palace to be greeted by suitors who want you deadnWhen they see you they are shockednThey run at you and try and kill younYou are beat into a pulpnYou are deadn";
}

else if (EnterOrScopeOutOtherLessMen == '2')
{
cout << "nYou look around and see suitors all over your palacenYou see only one man that stands out and he looks like younYou see him walk out of the palace and interact with himnHe says him name and you know its your sonnYou convince him in time till he believes younYou need to plan a way to kill the suitorsn1) Lead them outside and lock the doorn2)Attack from the inside";
//ONLY WAY
cin >> AttackStratLessMenOnlySon2;

//DEAD
if (AttackStratLessMenOnlySon2 == '1')
{
cout << "nYour son leads all the suitors outside claiming that a race will decide the winnernThey all run as fast as they can and you run innAs the last one leaves you close and lock the doornThe suitors soon notice what happens and kills your sonnThey rampage and over the door and with force knock it downnThey rampage in trampling you to deathnYou are deadn";
}

else if (AttackStratLessMenOnlySon2 == '2')
{
cout << "nYou and your son go inside dressed as beggarsnYou both carry knifes to kill themnYou corner one at a time and kill themnYou kill half of them before anyone noticesnThey don't know who did it so in the confusion you both attack killing nearly the restnThe one remaining beg for there lives but you finish them offnYou and your son go to your wife and explain it allnYou live the rest of your life with your familynYou Winn";
}
}

}




else if (TurnAndSayOnlyTwoLessMen == '2')
{
cout << "nThe Cyclops throws a rock towards your ship and misses by a hairnHe then sits and cries as you sail awaynYou sail and hit land at the home of Aeolus, ruler of windsnHe presents you with the winds that would blow him of course and stirs up a gust to blow him homenWithin 10 days of this incounter you have had no sleep buy you see Ithaca in sightn1) Sleep until you reach Itahcan2) Try to stay awake until you get theren";
cin >> SleepTillIthacaOrStayAwakeLessMenWithoutAngerTwoMen;




//DEAD
if (SleepTillIthacaOrStayAwakeLessMenWithoutAngerTwoMen == '1')
{
cout << "nYou fall asleep and wake up to your men opening the sacknThey both fly off the ship and you are without strength and cannot close the sacknYou are thrown hundreds of feet in the air and hit the waternYou are deadn";

}

else if (SleepTillIthacaOrStayAwakeLessMenWithoutAngerTwoMen == '2')
{
cout << "nYou stay awake till you hit land, soon as you dock you fall asleepnYou men are gone when you wake so you wander till you reach your palacen1) Enter the palace to see your familyn2) Scope out the arean";
cin >> EnterOrScopeOutLessMen;

//DEAD
if (EnterOrScopeOutLessMen == '1')
{
cout << "nYou enter the palace to be greeted by suitors who want you deadnWhen they see you they are shockednThey run at you and try and kill younYou are beat into a pulpnYou are deadn";
}

else if (EnterOrScopeOutLessMen == '2')
{
cout << "nYou look around and see suitors all over your palacenYou see only one man that stands out and he looks like younYou see him walk out of the palace and interact with himnHe says him name and you know its your sonnYou convince him in time till he believes younYou need to plan a way to kill the suitorsn1) Lead them outside and lock the doorn2)Attack from the inside";
//ONLY WAY
cin >> AttackStratLessMenOnlySon;

//DEAD
if (AttackStratLessMenOnlySon == '1')
{
cout << "nYour son leads all the suitors outside claiming that a race will decide the winnernThey all run as fast as they can and you run innAs the last one leaves you close and lock the doornThe suitors soon notice what happens and kills your sonnThey rampage and over the door and with force knock it downnThey rampage in trampling you to deathnYou are deadn";
}

else if (AttackStratLessMenOnlySon == '2')
{
cout << "nYou and your son go inside dressed as beggarsnYou both carry knifes to kill themnYou corner one at a time and kill themnYou kill half of them before anyone noticesnThey don't know who did it so in the confusion you both attack killing nearly the restnThe one remaining beg for there lives but you finish them offnYou and your son go to your wife and explain it allnYou live the rest of your life with your familynYou Winn";
}
}
}
}

}

}

//Don't blind Cyclops and Die Less Men
else if (ShapenSpearToBlindCyclopsOrWaitAndDieLessMen == '2')
{
cout << "nYou wait for an opening to get away but it never comesnYour men get picked off one by one until its your turnnYou are deadn";
}
}

//NOT COMPLETE Leaving Cyclops With Food and Wine Less Men NOT COMPLETE
else if (LeaveCaveOrGetALookAtCyclopsLessMen == '2')
{
cout << "nYou leave with a good amount of food and winenYou continue to Aeolus, ruler of the winds";
}
}

//NOT DONE Don't Explore Island and Continue to Wind God NOT DONE
else if (ExploreIslandOrLeaveLessMen == '2')
{
cout << "You continue to Ithaca and ration your food outnYour men grow irratable and make rash choicesn";
}

}
}
}
}
}

//Answer to Staying to Leaving Troy with FULL SHIP
else if (StayOrLeaveTroy == '2')
{
cout << "nYou board 12 ships with all 720 of you menn";
cout << "You head to the Island of Ismarus, home of the Ciconiansn"; //Statement
cout << "The Ciconians joined the side of Trojans so your men want to siege itn"; //Statement
cout << "1) Siege their village and conquer the landn" << "2) Convince your men to stand back and leave to Ithacan";
}
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.