Guest User

Untitled

a guest
Jan 18th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. public class ControllerStart {
  2. static Model animalTree;​
  3. static View console;​
  4. static boolean userResponse;​
  5. public static void main(String args[])​
  6. { start(); }​
  7. public static void start()​
  8. {​
  9. //build tree or reset location in tree​
  10. //start game by asking first question​
  11. }​
  12. public static void askQuestions()​
  13. {​
  14. //Send question to view​
  15. //Get answer from view​
  16. //Request next question from Model (sending Yes or No)​
  17. //If question, repeat, else, guess animal​
  18. }​
  19. public static void guessAnimal() {​
  20. //Ask view/user if correct animal​
  21. //If yes –play again? else…​
  22. //Add animal to model​
  23. //Ask view/user for animal and question​
  24. //Send to model –play again?​
  25. }​
  26.  
  27. }
Add Comment
Please, Sign In to add comment