Assignemnt #45 Choose Your Own Adventure!
Code
/// Name: Drew Boxold
/// Period: 5
/// Program Name: Choose Your Own Adventure!
/// File Name: ChooseAdventure.java
/// Date Finished: 11/10/2015
import java.util.Scanner;
public class ChooseAdventure
{
public static void main(String[] args)
{
Scanner keyboard = new Scanner(System.in);
String r1, r2, r3, r4, r5, r6, r7;
System.out.println("Welcome to Drew's mini adventure!");
System.out.println();
System.out.println("You are late to soccer practice! Would you like to go to \"practice\" or go \"home\"?");
r1 = keyboard.next();
System.out.println();
if (r1.equals("practice"))
{
System.out.println("You go to practice and Greenwood rousts you. You may either roust him back \"roust\" or to your \"take-it\".");
r2 = keyboard.next();
System.out.println();
if (r2.equals("roust"))
{
System.out.println("You get rousted then decide to either \"run-away\" or \"stay\" ");
r3 = keyboard.next();
System.out.println();
if (r3.equals("run-away"))
{
System.out.println("Youre kicked off the team and greenwood rousts you for all eternitly.");
}
else if (r3.equals("stay"))
{
System.out.println("Greenwood adopts you as his son.");
}
}
else if (r2.equals("take-it"))
{
System.out.println("You feel horribly and decide to either \"ignore-it\" or \"let-it-ruin-you\" ");
r4 = keyboard.next();
System.out.println();
if (r4.equals("ignore-it"))
{
System.out.println("You become Ronaldo and rek fools in HS soccer!");
}
else if (r4.equals("let-it-ruin-you"))
{
System.out.println("You think about it for eternity and die by a slow and painful death by roust.");
}
}
}
else if (r1.equals("home"))
{
System.out.println("You go home and your mother seems mad. Do you \"flee\" or \"get-rousted\" ");
r5 = keyboard.next();
System.out.println();
if (r5.equals("flee"))
{
System.out.println("You flee to the intercity of Manchester England and become a bum. Do you let the bum lyfe take you in or fight it? (\"yes\" or \"no\")");
r6 = keyboard.next();
System.out.println();
if (r6.equals("yes"))
{
System.out.println("You become a blackbeld-bum and meet ronaldo then become the best soccer player on the face of the earth. ");
}
else if (r6.equals("no"))
{
System.out.println("You nolonger acheive anything else in your life and you die with a faint memory of Greenwoods roust engraved in your mind");
}
}
else if (r5.equals("get-rousted"))
{
System.out.println("Do you take the roust? (\"yes\" or \"no\")");
r7 = keyboard.next();
System.out.println();
if (r7.equals("yes"))
{
System.out.println("You take the roust and decide to go back to practice just to get rousted again and die from death-by-roust.");
}
else if (r7.equals("no"))
{
System.out.println("You dont take the roust and then decide to roust your mother back and implode the earth. Congrats.");
}
}
}
}
}
Picture of the output