Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ControllerStart {
-
- static Model animalTree;
- static View console;
- static boolean userResponse;
-
- public static void main(String args[])
- { start(); }
-
- public static void start()
- {
- //build tree or reset location in tree
-
- //start game by asking first question
- }
-
- public static void askQuestions()
- {
- //Send question to view
-
- //Get answer from view
-
- //Request next question from Model (sending Yes or No)
-
- //If question, repeat, else, guess animal
- }
-
- public static void guessAnimal() {
- //Ask view/user if correct animal
-
- //If yes –play again? else…
-
- //Add animal to model
-
- //Ask view/user for animal and question
-
- //Send to model –play again?
-
- }
- }
Add Comment
Please, Sign In to add comment