package animal;

public class Main {
    public static void printIntro() {
        String msg = "\n";
        msg += "===========================================================\n";
        msg += "Welcome to the Animal Game!\n";
        msg += "===========================================================\n";
        System.out.print(msg + "\n");
    }

    public static void main(String[] args) {
        root = new Node(new AnswerState("butterfly"));
        printIntro();
        for(;;) {
            System.out.println("Think of an animal...");
            root.process();
            System.out.println("That was fun. Let's play again.\n");
        }
    }

    static Node root;
}
