Assignemnt #45 Choose Your Own Adventure!
Code
/// Name: Brendan Baird
/// Period: 6
/// Program Name: Choose Your Own Adventure!
/// File Name: ChooseAdventure.java
/// Date Finished: 10/9/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 BRENDO'S SWAGGIN ADVENTURE!");
System.out.println();
System.out.println("You are at home and bored. Would you like to go \"outside\" or \"inside\"?");
r1 = keyboard.next();
System.out.println();
if (r1.equals("outside"))
{
System.out.println("You outside and plan on doing some swag shit. Do you \"fuck-bitches\" or \"get-money\".");
r2 = keyboard.next();
System.out.println();
if (r2.equals("fuck-bitches"))
{
System.out.println("You realize you forgot your protection. Do you continue? (\"yes\" or \"no\")");
r3 = keyboard.next();
System.out.println();
if (r3.equals("yes"))
{
System.out.println("You recieve an STD from the lady of the night and die 3 days later. Always wear protection!");
}
else if (r3.equals("no"))
{
System.out.println("You decided to wait and realize that this woman is the one and marry her 6 months later. Congratulations!");
}
}
else if (r2.equals("get-money"))
{
System.out.println("You go to bank and pull out a gun. Would you like to conitue robbing this joint? (\"yes\" or \"no\")");
r4 = keyboard.next();
System.out.println();
if (r4.equals("yes"))
{
System.out.println("You kill some people and take $1,000,000. You live a life of happiness in Hawaii!");
}
else if (r4.equals("no"))
{
System.out.println("You are arrested for holding a live weapon in public. That's what you get for giving up. Never give up, never surrender!");
}
}
}
else if (r1.equals("inside"))
{
System.out.println("You realize you have a test tomorrow. Do you \"study\" or \"party\" ?");
r5 = keyboard.next();
System.out.println();
if (r5.equals("study"))
{
System.out.println("You look for your text books and can't find them. Do you continue looking? (\"yes\" or \"no\")");
r6 = keyboard.next();
System.out.println();
if (r6.equals("yes"))
{
System.out.println("You waste the rest of your day looking for your text book and fail the test. After, you drop out of high school and become homeless. Loser!");
}
else if (r6.equals("no"))
{
System.out.println("You don't study and tell the teacher your book was lost. He gives you an A+ on the test and you graduate high school with honors. Congratulations!");
}
}
else if (r5.equals("party"))
{
System.out.println("You go to a fat rager and you are offered cocaine. Do you take it? \"yes\" or \"no\" ?");
r7 = keyboard.next();
System.out.println();
if (r7.equals("yes"))
{
System.out.println("You become a coke addict and live your life partying with college kids. I guess you loose but win. Idk");
}
else if (r7.equals("no"))
{
System.out.println("You are called a nark and get attacked by everyone and wake up in the hospital without a leg. Sucks to suck.");
}
}
}
}
}
Picture of the output