Skip to content

Instantly share code, notes, and snippets.

@jasojone
Created September 22, 2019 17:34
Show Gist options
  • Save jasojone/bb9d26b04c25353188c24786c0d3e7a8 to your computer and use it in GitHub Desktop.
Save jasojone/bb9d26b04c25353188c24786c0d3e7a8 to your computer and use it in GitHub Desktop.
int main()
{
char choice;
cout << "After returning to the captains' deck you realize a blip on your leak detection systems screen.\n";
cout << "Unfortunately, the assistant captain failed to see that there is a leak in the main hall of the ship,\n";
cout << "which is now nearly full of water. The ship sinking is highly probable.\n";
cout << "Commence evacuation procedure immediately?\n";
cout << "(y/n)" << endl;
cin >> choice;
if (choice == 'n' || choice == 'N') //path 1
{
cout << "Good stay calm, captain you have distinct training for this kind of event.\n";
cout << "Dispatch the engineers to initiate emergency procedure protocols, instruct the team redirect\n";
cout << "the water to other hauls until it can be discarded, and then seal the leak?\n";
cout << "(y / n)" << endl;
}
cin >> choice;
if (choice == 'n' || choice == 'N') //path 1
{
cout << "The ship begins to tilt and in a furry of panic the occupants of the ship begin to run around in complete chaos,\n";
cout << "some people run to their beloved belongings, some to the reserve boats, and others just run around in a frenzy.\n";
cout << "Few survive the sinking and you the captain of the boat in an act of pride go down with it.\n";
cout << "GAME OVER" << endl;
}
if (choice == 'y' || choice == 'Y') //path 1
{
cout << "Great job captain the engineers were able to redirect the water seal the hole and successfully save the\n";
cout << "ship. Meanwhile, because you kept your cool the occupants didn’t even know their lives were in danger \n";
cout << "and that the boat nearly sunk. \n";
cout << "THE END" << endl;
}
else if (choice == 'y' || choice == 'Y') //path 2
{
cout << "In a furry of panic the occupants of the ship begin to run around in complete chaos, some people run to \n";
cout << "their beloved belongings, some to the reserve boats, and others just freeze incapable of even moving.\n";
cout << "Instruct the crew to assist in the deployment of the reserve boats?\n";
cout << "" << endl;
}
cin >> choice;
if (choice == 'n' || choice == 'N') //path 2
{
cout << "The chaos increases the occupants begin to tear each other apart in order to gain access to the reserve\n";
cout << "boats. In an act of selfish disparity, the crew begins to take the reserve boats for themselves leaving no\n";
cout << "one to deploy boats for the occupants. The ship sinks taking over half of the occupants. In an act of \n";
cout << "pride, you go down with the ship.\n";
cout << "GAME OVER" << endl;
}
if (choice == 'y' || choice == 'Y') //path 2
{
cout << "The crew rush to the reserve boats packing them as tightly as can be sending off sometimes as many as\n";
cout << "30 passengers at a time. The reduction in weight from all the passengers being saved buys the crew\n";
cout << "more time to not only save all the occupant’s but all the crew as well. Although you will go down in\n";
cout << "history at the captain who lost his ship you will go down as the captain who saved many lives, a captain \n";
cout << "who would man a ship again.\n";
cout << "THE END" << endl;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment