Assignment #45 Choose Your Own Adventure

I didn't use rooms in this, instead I just had different choices because I was really lazy when I was working on it and I couldn't really think of a good idea. If you want me to redo it but with rooms instead of just these choices, let me know. Sincerely, the resident of Computer #11, Period 7.

Code

    /// Name: Koosha Kimelman
    /// Period: 7
    /// Program Name: Choose Your Own Adventure
    /// File Name: ChooseYourAdventure.java
    /// Date Completed: 10/15/15
    
    import java.util.Scanner;
    
    public class ChooseYourAdventure {
    
        public static void main(String[] args) {
        
            Scanner keyboard = new Scanner(System.in);
            
            String c1, c2, c3;
            
            System.out.println("Welcome to the apathetic adventure where you're too lazy to make a name.");
            
            System.out.println();
            
            System.out.print("It's Tuesday, October 13. You are in Intro to Computer Programming with Mr. Davis, 7th period, in room 106. You have to make a Choose Your Own Adventure thing that has 8 different endings, but you are feeling really lazy and tired. Do you \"work\" or \"don't\" work? ");
            c1 = keyboard.next();
            
            System.out.println();
            
            if (c1.equals("work")) {
                System.out.print("You start working on it. Before you even finish with the first if statement, you feel even MORE lazy and tired. Do you \"continue\" to work or \"don't\"? ");
                c2 = keyboard.next();
                
                System.out.println();
                
                if (c2.equals("continue")) {
                    System.out.print("You, against your desire to put your head down and rest, continue to work. Before long, you start to run out of ideas for what to put, so you start typing whatever you're thinking, subconsciously trying to distract yourself from the program. Do you force yourself to \"continue\" or \"let_it_happen\"? ");
                    c3 = keyboard.next();
                    
                    System.out.println();
                    
                    if (c3.equals("continue")) {
                        System.out.println("You did some more work, and then you stopped with only 4 minutes left in the period, feeling pretty content with the work you did.");
                    }
                    
                    else if (c3.equals("let_it_happen")) {
                        System.out.println("Well you at least got something done... something is better than nothing. This is how it went that day. Nice job, you got the true ending.");
                    }
                    
                    else {
                        System.out.println("Please type in a correct answer, I don't want to have to make an else statement for every single one, but I of course have to.");
                    }
                
                }
            
                else if (c2.equals("don't")) {
                    System.out.print("You stop working on the program. You don't know what to do, and you are already very far ahead of where you have to be, program-wise. You start playing a game on a website that isn't being blocked. You start to feel like you should continue working. Do you \"go_back\" to the program or do you \"keep_playing\"? ");
                    c3 = keyboard.next();
                    
                    System.out.println();
                    
                    if (c3.equals("go_back")) {
                        System.out.println("You work on it a little more after playing some games. You got a bit more done, but it would have been better if you worked the whole time... although at least you worked at all.");
                    }
                    
                    else if (c3.equals("keep_playing")) {
                        System.out.println("You kept playing, and had a little fun. Before you know it, the period has ended. You didn't work a lot that period. But not a lot is better than not at all... at least.");
                    }
                    
                    else {
                        System.out.println("Please type in a correct answer, I don't want to have to make an else statement for every single one, but I of course have to.");
                    }   
                }
                
                else {
                        System.out.println("Please type in a correct answer, I don't want to have to make an else statement for every single one, but I of course have to.");
                }
            }
                    
            else if (c1.equals("don't")) {
                System.out.print("You just put your head down for a little bit. In the back of your head, you know you should be working on it, but you are not sure. Do you want to \"start\" working or keep your \"head_down\"? ");
                c2 = keyboard.next();
                    
                System.out.println();
                    
                if (c2.equals("start")) {
                    System.out.print("You feel a little better after resting a little bit. You get a bit done, but you still feel tired and want to put your head back down. Do you want to \"work\" more or \"rest\" your head again? ");
                    c3 = keyboard.next();
                        
                    System.out.println();
                        
                    if (c3.equals("work")) {
                        System.out.println("You ignore the urge to put down your head again, and work until the end of the period. You get some more done, but you could have done more if you worked the whole time");
                    }
                        
                    else if (c3.equals("rest")) {
                            System.out.println("You feel like you got at least anything done, so you put your head down for the rest of the period. You didn't do much, but at least you weren't resting for the whole period");
                    }
                        
                    else {
                        System.out.println("Please type in a correct answer, I don't want to have to make an else statement for every single one, but I of course have to.");
                    }
                }
                
                else if (c2.equals("head_down")) {
                    System.out.print("You decide to keep your head down and leave it until the next day. You rest for a bit more, but you still think you should at least get something done. Will you \"start\" on the program at all, or just \"wait\" until the end of the period and not do anything? ");
                    c3 = keyboard.next();
                    
                    System.out.println();
                    
                    if (c3.equals("start")) {
                        System.out.println("You sit up and work on the program for the remainder of the period. You aren't exactly happy with how much you did, but you've at least started it, and it was nice resting.");
                    }
                    
                    else if (c3.equals("wait")) {
                        System.out.println("You keep your head down for the entire rest of the period. You didn't get any work done the whole period. Tomorrow you will definitely need to work harder. At least you got to enjoy resting your head.");
                    }
                    
                    else {
                        System.out.println("Please type in a correct answer, I don't want to have to make an else statement for every single one, but I of course have to.");
                    }
                }
                
                else {
                        System.out.println("Please type in a correct answer, I don't want to have to make an else statement for every single one, but I of course have to.");
                }
            }
        }
    }
    

Picture of the output

Assignment 45