Project #1 Choose Your Own Slightly Longer Adventure

Code

      ///Name: Brian Phillips
      ///Period:5
      ///Project Name: Short Adventure 2: With a Loop
      ///File Name: Project1.java
      ///12/10/15   
import java.util.Scanner;
      public class Project1
      {
          public static void main(String[] args)
          {
              Scanner stuff= new Scanner(System.in);
              String c1,c2,c3,c4;
              System.out.println("Welcome to this adventure.");
              System.out.println("You have been trapped in a cave for a whole week and your only goal is to escape.");
              System.out.println("You spot a giant cat running at you");
              System.out.println("Would you like to stand and \"fight\", \"run\"  or use your \"flying\" machine to escape?");
              c1=stuff.next();
              if (c1.equals("fight"))
              {
                  System.out.println("You look for weaknesses in the cat as it runs at you.");
                  System.out.println("You spot a weakness at its legs possibly. Truthfully you don't know anything about cats do you \"mount\" the cat or \"grab\" its legs?");
                  c2=stuff.next();
                  if (c2.equals("mount"))
                  {
                      System.out.println("The cat was actually after a giant bird behind you do you fight on \"foot\" or on the cat's \"back\".");
                      c3=stuff.next();
                      if (c3.equals("foot"))
                      {
                          System.out.println("You are stepped on by the cat because he doesn't even see you because you are so small.");
                      }
                      else if(c3.equals("back"))
                      {
                          System.out.println("The cat kills the bird without your help... Great Job!");   
                      }
                      
                  }
                  else if (c2.equals("grab"))
                  {
                      
                      System.out.println("You are now riding the cats leg and he pounces on a giant bird behind you do you fight for the \"cat\" or fight for the \"bird\".");
                      c3=stuff.next();
                      if (c3.equals("cat"))
                      {
                          System.out.println("The cat destroys the bird without your help and leaves the cave with you on his back... Great Job!");
                                
                      }
                      else if(c3.equals("bird"))
                      {
                          System.out.println("Both you and the bird are eaten by the cat... Great Job!");
                                
                      }
                  }
              } 
              else if (c1.equals("run"))
              {
                  System.out.println("You smartly choose to run away but you are now are trapped and there are only two ways to go.");
                  System.out.println("Would you like to \"climb\" through a giant hole in the top of the cave or \"continue\" on foot.");
                  c2=stuff.next();
                  if(c2.equals("climb"))
                  {
                      System.out.println("You attempt to climb out but you are extremely heavy and the whole cave caves in on you");
                      System.out.println("You are now stuck in the cave");
                      System.out.println("Would you like to become one with the \"mud\" or one with the \"rocks\".");
                      c3=stuff.next();
                      if (c3.equals("mud"))
                      {
                          System.out.println("You are now outside the muddy cave however you are now a mud man. At least you got out of the cave... Great Job!");
                      }
                      else if (c3.equals("rocks"))
                      {
                          System.out.println("The cave is you, you are the cave you are both rocks you are one with the rocks and one with the cave. Great Job! Too bad you didn't make it out of the cave.");
                      }
                  }
                  else if(c2.equals("continue"))
                  {
                      System.out.println("You see a light at the end of the cave.");
                      System.out.println("Do you go \"toward\" the light or \"away\" from the light?");
                      c3=stuff.next();
                      if (c3.equals("toward"))
                      {
                          System.out.println("You are now in heaven because you went toward the light. Great job! Thanks Jesus!");
                          System.out.println("You didn't get out of the cave, you died, you suck.");
                      }
                      else if(c3.equals("away"))
                      {
                          System.out.println("You are stuck in the dark and have no idea where you are.");
                          System.out.println("Then you realize");
                          System.out.println("It is nightime and you have escaped the cave. Great Job!");
                      }
                  }
              }
              else if (c1.equals("flying"))
              {
                  System.out.println("You mount on the flying machine how do you dodge the attacking cat.");
                  System.out.println("Do you go \"over\" the cat or \"around\" the cat?");
                  c2=stuff.next();
                  if(c2.equals("over"))
                  {
                      System.out.println("You go over the cat but you are now losing momentum");
                      System.out.println("You spot two exits one is through the \"top\" of the cave and one is by \"busting\" through the wall, which do you choose?");
                      c3=stuff.next();
                      if (c3.equals("top"))
                      {
                          
                          System.out.println("You don't have enough momentum to reach the top of the cave and die. Great Job!");
                      }
                      else if (c3.equals("busting"))
                      {
                          System.out.println("You blow a hole in the wall great job. You escaped.");
                      }
                  }
                  else if(c2.equals("around"))
                  {
                      System.out.println("You try to go around the cat but he turns into you do you dodge \"up\" or go \"under\" the cat?");
                      c3=stuff.next();
                      if (c3.equals("up"))
                      {
                          System.out.println("The cat jumps and runs right into you. Now you are dead. Great Job.");
                      }
                      else if(c3.equals("under"))
                      {
                          System.out.println("The cat jumps so you easily dodge under the cat.");
                          System.out.println("You now have enough momentum to glide through the hole at the top of the cave.");
                      }
                  }
              }
          }
      }
    

Picture of the output

NumberGuessing2.html