import java.util.*;

/**
 * Copyright 2017 FBI Games
 * This code is under MIT licence, you can find the complete license in the
 * LICENSE file in the root project directory
 * <p>
 * Created by Raklan on 6/22/2017.
 */

public class Game {
    //create objects to use in the game
    static Riddle theRiddle = null;


    //static Riddle one = new Riddle("ar", "r", 1, ". .  . . .     _  _ _ _     . _ _ _  . . _  . _ . .  . .  .  _  _");
    //static Riddle two = new Riddle("e1", "e", 2, "Put the actual Riddle itself here");
    //static Riddle three = new Riddle("ay", "a", 3, "");
    //static Riddle four = new Riddle("dee", "d", 4, "");
    //static Riddle five = new Riddle("em", "m", 5, "");
    //static Riddle six = new Riddle("e2", "e", 6, "");


    static Player thePlayer = new Player();

    static Random gen = new Random();
    static Scanner scan = new Scanner(System.in);

    public static void main(String[] args) {

        System.out.println("Welcome to Project-X");
        System.out.println("What is your name?");
        thePlayer.setPlayerName(scan.next());


        int next = gen.nextInt(6);

        switch (next) {

            case 0:
                theRiddle = new Riddle("ar", "r", 1, ". .  . . .     _  _ _ _     . _ _ _  . . _  . _ . .  . .  .  _  _");
                break;
            case 1:
                theRiddle = new Riddle("e1", "e", 2, "Put the actual Riddle itself here");
                break;
            case 2:
                theRiddle = new Riddle("ay", "a", 3, "");
                break;
            case 3:
                theRiddle = new Riddle("dee", "d", 4, "");
                break;
            case 4:
                theRiddle = new Riddle("em", "m", 5, "The 27th Angel");
                break;
            case 5:
                theRiddle = new Riddle("e2", "e", 6, "");
                break;

        }

        showRiddle();


    }

    public static void showRiddle() {


        System.out.println();
        System.out.println("Press Enter to Continue");
        String scanner = scan.nextLine();
        System.out.println(scanner);

    }

}

import java.util.*;

/**
 * Copyright 2017 FBI Games
 * This code is under MIT licence, you can find the complete license in the
 * LICENSE file in the root project directory
 * <p>
 * Created by Raklan on 6/22/2017.
 */

public class Game {
    //create objects to use in the game
    static Riddle theRiddle = null;
    //static Riddle one = new Riddle("ar", "r", 1, ". .  . . .     _  _ _ _     . _ _ _  . . _  . _ . .  . .  .  _  _");
    //static Riddle two = new Riddle("e1", "e", 2, "Put the actual Riddle itself here");
    //static Riddle three = new Riddle("ay", "a", 3, "");
    //static Riddle four = new Riddle("dee", "d", 4, "");
    //static Riddle five = new Riddle("em", "m", 5, "");
    //static Riddle six = new Riddle("e2", "e", 6, "");


    static Player thePlayer = new Player();

    static Random gen = new Random();
    static Scanner scan = new Scanner(System.in);

    public static void main(String[] args) {

        System.out.println("Welcome to Project-X");
        System.out.println("What is your name?");
        thePlayer.setPlayerName(scan.next());


        int next = gen.nextInt(6);

        switch (next) {

            case 0:
                theRiddle = new Riddle("ar", "r", 1, ". .  . . .     _  _ _ _     . _ _ _  . . _  . _ . .  . .  .  _  _");
                break;
            case 1:
                theRiddle = new Riddle("e1", "e", 2, "Put the actual Riddle itself here");
                break;
            case 2:
                theRiddle = new Riddle("ay", "a", 3, "");
                break;
            case 3:
                theRiddle = new Riddle("dee", "d", 4, "");
                break;
            case 4:
                theRiddle = new Riddle("em", "m", 5, "The 27th Angel");
                break;
            case 5:
                theRiddle = new Riddle("e2", "e", 6, "");
                break;

        }

        showRiddle();


    }

    public static void showRiddle() {


        System.out.println();
        System.out.println("Press Enter to Continue");
        String scanner = scan.nextLine();
        System.out.println(scanner);

    }

}

change file name