public class textAdventure
public static void Main()
public static void gameTitle()
Console.WriteLine("Welcome to my game, Shipwrecked.");
Console.WriteLine("Press ENTER to begin...");
public static void shipwrecked()
Console.WriteLine("You were shipwrecked at sea.");
Console.WriteLine("A pirate ship approaches and welcomes you aboard.");
Console.WriteLine("What do you do?");
Console.WriteLine ("1. Climb Aboard");
Console.WriteLine ("2. Paddle away");
Console.WriteLine ("Choice: ");
int choice = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("They shoot you as you try to row away");
Console.WriteLine("...");
public static void walkThePlank()
Console.WriteLine("As you climb aboard the pirate ship, you are immediately surrounded by a group of angry pirates.");
Console.WriteLine("Pointing their guns at you, they start pushing you towards the plank.");
Console.WriteLine("Before they have a chance to push you over the edge you pull out of your pocket...");
Console.WriteLine ("1. Money");
Console.WriteLine ("2. Picture of your family");
Console.WriteLine ("3. Treasure map");
Console.WriteLine("Choice: ");
string pickOne = Console.ReadLine().ToLower();
Console.WriteLine("They grab the money from your hand and push you over the edge");
Console.WriteLine("...");
case "picture of your family":
Console.WriteLine("They laugh as they push you over the edge");
Console.WriteLine("...");
Console.WriteLine("They pull you back onto the ship and take you to the captain");
Console.WriteLine("...");
Console.WriteLine("I don't understand that command...");
Console.WriteLine("Press ENTER to try again.");
public static void captain()
Console.WriteLine("The captain says, 'I hear you have a treasure map.'");
Console.WriteLine("I am willing to work with you to find the treasure, but only if I can keep all of my favorite treasures");
Console.WriteLine("Can you guess what my favorite treasure is? \n");
string [] treasure = {"Gold", "Diamonds", "Pearls", "Silver", "Rubies"};
int arrayLength = treasure.Length;
for (int i=0; i < arrayLength; i++)
Console.WriteLine(treasure[i]);
string treasureChoice = Console.ReadLine().ToLower();
Console.WriteLine("Yes! Yes, indeed! I will want all of the " +treasureChoice +" and we will split the rest of the bounty!");
Console.WriteLine("...");
Console.WriteLine("Do you agree to these terms?");
Console.WriteLine("1. Yes");
Console.WriteLine("2. No");
int answerHim = Convert.ToInt32(Console.ReadLine());
public static void gameOver()
Console.WriteLine("You lose, game over.");
public static void youWin()
Console.WriteLine("You convince the captain to work with you, you win!");