Prog 45: Choose Your Own Adventure!
///Name: Ilana Levy
///Period: 5
///Program Name: Choose Your Own Adventure!
///File Name: chooseAdventure.java
///Date Finished: 9/13/2015
import java.util.Scanner;
public class chooseAdventure
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner( System.in );
String drink, room1, room2, A1, A2, A3, A4, A5, A6, A7, A8;
System.out.println( "Welcome To the Hangover Part 26" );
System.out.println( "You go to a highschool party because your friend insists that it's \"cool\". \n Do You ask for a drink? ");
drink = keyboard.next();
if ( drink.equals("yes") )
{
System.out.print( "You want to sit down. Do you look for a chair in the kitchen or the basement?" );
room1 = keyboard.next();
if( room1.equals("kitchen"))
{
System.out.print( "You see people playing spin the bottle. Do you join? " );
A1 = keyboard.next();
if ( A1.equals( "yes" ) )
{
System.out.println( "The cops burst in and you are arrested for being a drunk minor" );
}
else if ( A1.equals( "no" ) )
{
System.out.println( "The cops burst in and you are arrested for being a drunk minor" );
}
}
else if ( room1.equals("basement" ) )
{
System.out.print( " You spot your friend playing beerpong. Do you join in? " );
A1 = keyboard.next();
if ( A1.equals( "yes" ) )
{
System.out.println( "The cops burst in and you are arrested for being a drunk minor" );
}
else if ( A1.equals( "no" ) )
{
System.out.println( "The cops burst in and you are arrested for being a drunk minor" );
}
}
}
else if ( drink.equals( "no" ) )
{
System.out.print( "You get bored and want to sit down. Do you go to the kitchen or basement?" );
room1= keyboard.next();
if (room1.equals( "kitchen" ))
{
System.out.println( "There are no seats so you get in your car and start driving home. Do you get into an accident? " );
A1 = keyboard.next();
if ( A1.equals( " yes" ) )
{
System.out.println( "The cops come and smell alcohol on your clothes and you are arrested for being a drunk minor. " );
}
else if ( A1.equals( "no" ) )
{
System.out.println( "You get home and your parents yell at you for staying out too late. The next morning, you see that your friend drunk dialed you several times. " );
}
}
else if ( room1.equals( "basement" ) )
{
System.out.println( "You spot your friend playing beerpong. Do you make sure he doesn't get into trouble? " );
A1 = keyboard.next();
if ( A1.equals( "yes" ) )
{
System.out.println( "You pass a boring night making sure your friend stays ok until the cops burst in and you are arrested for being a drunk minor" );
}
else if ( A1.equals( "no" ) )
{
System.out.println( " You pass an awesome night watching how funny your friend acts drunk" );
}
}
}
}
}