Review Hw9 Mystery Methods CA's will
very briefly review the mystery methods from
hw9.
Students needing deeper review of the rest of the hw9 material should set up a separate
meeting with their CA or instructor.
Click It!
Modify any of the 3 animations from above so that it is a very simple
game: the player tries to click on the moving square. Each
click in the moving square scores a point. Each click outside the
moving square loses a point. Display the score. When the
score gets to 5 (win) or -5 (loss), display a very simple game over
screen that indicates if the player won or lost, and then restart the
game if the user presses 'r', or quit (with System.exit(0)) if the user
presses 'q'. Beep for any other input at that time, including any
mouse input.