NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

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

using namespace std;

char Stay_or_Leave_Troy;
char Stay_or_Leave_Troy2;
char Stay_or_Leave_Troy3;
char Siege_or_Flee_Ismarus;
char Stay_and_Feast_or_Head_to_Ithaca;
char Take_Lotus_or_Dont;
char Explore_or_Head_to_Ithaca;
char Look_at_Cyclops_or_Leave;
char Blind_or_Die;

int main() //COMP START OF GAME
{
cout << "You 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 >> Stay_or_Leave_Troy;

//STAYS IN TROY 1st TIME TO FEAST NO DIFFERENCE IS MADE
if (Stay_or_Leave_Troy == '1') //COMP
{
cout << "You stay in Troy and feast, you long to go back to Ithacan"; //Statement
cout << "1) Stay in Troyn" << "2) Leave Troy and head to Ithacan"; //Questions after Stay_or_Leave_Troy
cin >> Stay_or_Leave_Troy2;
}
//YOU STAY IN TROY AGAIN
if (Stay_or_Leave_Troy2 == '1') //COMP
{
cout << "You stay in Troy, you have enough food and wine to last a lifetime so your men are pleasedn";
cout << "You want to go to Ithaca to start you life againn";
cout << "1) Stay in Troy and live the rest of you life theren" << "2) Leave Troy and head home to Ithacan";
cin >> Stay_or_Leave_Troy3;
}
//STAYED IN TROY TO DINE AND LEFT NO DIFFERENCE IS MADE
else if (Stay_or_Leave_Troy2 == '2') //COMP
{
cout << "After you dine you board 12 ships with all 86 of you menn"; //FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX
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 >> Siege_or_Flee_Ismarus;
}
//YOU KILL THE CICONIANS
if (Siege_or_Flee_Ismarus == '1') //COMP
{
cout << "You destroy your enemy! Your men want to stay and celebrate the victoryn";
cout << "1) Stay and feast on your victoryn" << "2) Leave and head back on course to Ithacan";
cin >> Stay_and_Feast_or_Head_to_Ithaca;
}
//CICONIANS FIGHT BACK AND YOU GO OFF COURSE
if (Stay_and_Feast_or_Head_to_Ithaca == '1') //COMP
{
cout << "You stay for a little to long, the Ciconians reinforcements have arrived killing 6 men per shipn";
cout << "You flee and head home to Ithaca but a storm causes your fleet to veer off coursen";
cout << "You hit the land of the Lotus-Eatersn";
cout << "The natives feed you a intoxicating fruit that leads your men to forget about home and only want to stay and eat the fruitn";
cout << "They offer you some fruitn";
cout << "1) Take the fruit and forget about Ithacan" << "2) Reject it and try to get your men back to shipn";
cin >> Take_Lotus_or_Dont;
}
//YOU TAKE LOTUS AND FORGET
if (Take_Lotus_or_Dont == '1') //COMP
{
cout << "You take the fruit and start to eat, after minutes you forget of Ithaca and Penolopen";
cout << "You live the rest of your life eating Lotus and die without memory of Ithacan";
cout << "You are dead";
}
//YOU DONT TAKE LOTUS AND RETURN BACK
else if (Take_Lotus_or_Dont == '2') //COMP
{
cout << "You drag your men back to ship and lock them up temporarilyn";
cout << "You and your men it an island just as your low on suppliesn";
cout << "1) Explore the islandn" << "2) Keep on track to Ithacan";
cin >> Explore_or_Head_to_Ithaca;
}
//ARRIVE AT CYCLOPS
if (Explore_or_Head_to_Ithaca == '1') //COMP
{
cout << "You arrive at the Island of the Cyclops and see one in the distance making a meal of goatsn";
cout << "You and your best 12 men go and explore the island to find the Cyclop's cave full of food and winen";
cout << "Your men grab as much as they can hold and tell you that we should leaven";
cout << "1) Stay to get a good look at the beastn" << "2) Leave with what you have and continue to Ithacan";
cin >> Look_at_Cyclops_or_Leave;
}
//YOU STAY TO LOOK AT CYCLOPS
if (Look_at_Cyclops_or_Leave == '1') //COMP
{
cout << "You stay and wait to look at the beastn";
cout << "The Cyclops returns and shoves rock in front of the cave doorn";
cout << "The Cyclops see's that you and your men helped your self to his food so he devourers 2 several of your menn";
cout << "The Cyclops cages you and your men and the Cyclops falls asleepn";
cout << "1) Wait till the next dayn" << "2) Sharpen a near wooden pole to blind the Cyclops";
cin >> Blind_or_Die;
}
//YOU DONT BLIND CYCLOPS AND DIE
if (Blind_or_Die == '1') //COMP
{
cout << "The next day comes and the Cyclops eats a few of your men for breakfast, a few for lunch, and the rest inculding you for dinnern";
cout << "You are dead";
//YOU RETURN TO SHIP
}
else if (Explore_or_Head_to_Ithaca == '2')
{
cout << "You and your men head back to the ship and head off to Ithaca";
}
//STAY IN TROY AND DIE
if (Stay_or_Leave_Troy3 == '1') //COMP
{
cout << "You live in Troy and dine every night, every night till your death you think of Ithaca, your final tear is shed just seconds before you death as you miss Penelope so muchn";
cout << "You are dead";
}
//LEAVE TROY WITH LESS MEN
else if (Stay_or_Leave_Troy3 == '2') //COMP
{
cout << "You leave Troy with no more than 20 men and 1 ship, you head to the Island of Ismarus, home of the Ciconiansn";
cout << "The Ciconians joined the side of Trojans so your men want to siege itn";
cout << "1) Siege their village and conquer the landn" << "2) Convince your men to stand back and leave to Ithacan";
cin >> Siege_or_Flee_Ismarus;
}
//YOU DIE ATTACKING CICONES WITH LESS MEN
if (Siege_or_Flee_Ismarus == '1') //COMP
{
cout << "You attack the village but foolishly, with only 20 men you get decimated. All your men die and you are lastn";
cout << "You are dead";
}
//WITH 20 MEN LOTUS FLOWERS
else if (Siege_or_Flee_Ismarus == '2')
{
cout << "You move forward to Ithaca only for a storm to push you off coursen";
cout << "You hit the land of the Lotus-Eatersn";
cout << "The natives feed you a intoxicating fruit that leads your men to forget about home and only want to stay and eat the fruitn";
cout << "They offer you some fruitn";
cout << "1) Take the fruit and forget about Ithacan" << "2) Reject it and try to get your men back to shipn";
cin >> Take_Lotus_or_Dont;
}
//DIE EATING LOTUS
if (Take_Lotus_or_Dont == '1') //COMP
{
cout << "You take the fruit and start to eat, after minutes you forget of Ithaca and Penolopen";
cout << "You live the rest of your life eating Lotus and die without memory of Ithacan";
cout << "You are dead";
}
//HIT CYCLOPS ISLAND
else if (Take_Lotus_or_Dont == '2') //COMP
{
cout << "You drag your men back to ship and lock them up temporarilyn";
cout << "You and your men it an island just as your low on suppliesn";
cout << "1) Explore the islandn" << "2) Keep on track to Ithacan";
cin >> Explore_or_Head_to_Ithaca;
}
//WATCH CYCLOPS MAKING FOOD
if (Explore_or_Head_to_Ithaca == '1')
{
cout << "You arrive at the Island of the Cyclops and see one in the distance making a meal of goatsn";
cout << "You and your best 12 men go and explore the island to find the Cyclop's cave full of food and winen";
cout << "Your men grab as much as they can hold and tell you that we should leaven";
cout << "1) Stay to get a good look at the beastn" << "2) Leave with what you have and continue to Ithacan";
cin >> Look_at_Cyclops_or_Leave;
}



else if (Stay_or_Leave_Troy == '2') //COMP
{
cout << "You board 12 ships with all 86 of you menn"; //FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX
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 >> Siege_or_Flee_Ismarus;
}
if (Siege_or_Flee_Ismarus == '1') //COMP
{
cout << "You destroy your enemy! Your men want to stay and celebrate the victoryn";
cout << "1) Stay and feast on your victoryn" << "2) Leave and head back on course to Ithacan";
cin >> Stay_and_Feast_or_Head_to_Ithaca;
}
if (Stay_and_Feast_or_Head_to_Ithaca == '1') //COMP
{
cout << "You stay for a little to long, the Ciconians reinforcements have arrived killing 6 men per shipn";
cout << "You flee and head home to Ithaca but a storm causes your fleet to veer off coursen";
cout << "You hit the land of the Lotus-Eatersn";
cout << "The natives feed you a intoxicating fruit that leads your men to forget about home and only want to stay and eat the fruitn";
cout << "They offer you some fruitn";
cout << "1) Take the fruit and forget about Ithacan" << "2) Reject it and try to get your men back to shipn";
cin >> Take_Lotus_or_Dont;
}
if (Take_Lotus_or_Dont == '1') //COMP
{
cout << "You take the fruit and start to eat, after minutes you forget of Ithaca and Penolopen";
cout << "You live the rest of your life eating Lotus and die without memory of Ithacan";
cout << "You are dead";
}
else if (Take_Lotus_or_Dont == '2') //COMP
{
cout << "You drag your men back to ship and lock them up temporarilyn";
cout << "You and your men it an island just as your low on suppliesn";
cout << "1) Explore the islandn" << "2) Keep on track to Ithacan";
cin >> Explore_or_Head_to_Ithaca;
}
if (Explore_or_Head_to_Ithaca == '1') //COMP
{
cout << "You arrive at the Island of the Cyclops and see one in the distance making a meal of goatsn";
cout << "You and your best 12 men go and explore the island to find the Cyclop's cave full of food and winen";
cout << "Your men grab as much as they can hold and tell you that we should leaven";
cout << "1) Stay to get a good look at the beastn" << "2) Leave with what you have and continue to Ithacan";
cin >> Look_at_Cyclops_or_Leave;
}
if (Look_at_Cyclops_or_Leave == '1') //COMP
{
cout << "You stay and wait to look at the beastn";
cout << "The Cyclops returns and shoves rock in front of the cave doorn";
cout << "The Cyclops see's that you and your men helped your self to his food so he devourers 2 several of your menn";
cout << "The Cyclops cages you and your men and the Cyclops falls asleepn";
cout << "1) Wait till the next dayn" << "2) Sharpen a near wooden pole to blind the Cyclops";
cin >> Blind_or_Die;
}
if (Blind_or_Die == '1') //COMP
{
cout << "The next day comes and the Cyclops eats a few of your men for breakfast, a few for lunch, and the rest inculding you for dinnern";
cout << "You are dead";
}
else if (Explore_or_Head_to_Ithaca == '2')
{
cout << "You and your men head back to the ship and head off to Ithaca";
}


}
     
 
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.