Computer Science 15-110, Spring 2010
Recitation for Week #11


  1. Review Hw9 Mystery Methods
  2. CA-Directed Lab
    1. Events Practice
  3. Student-Directed (Collaborative) Lab
    1. Click It!
    2. BallAroundSquare

  1. 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.
     
  2. CA-Directed Lab
    1. Events Practice
      CA's will write the 3 sample animations here:
      http://kosbie.net/cmu/fall-09/15-110/handouts/events/EventsPractice.html
       
  3. Student-Directed (Collaborative) Lab
    1. 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.
       
    2. BallAroundSquare
      Write this simple animation.  (Note: If this applet does not run in your web browser, you can try running this equivalent jar file: ballAroundSquare.jar)

carpe diem   -   carpe diem   -   carpe diem   -   carpe diem   -   carpe diem   -   carpe diem   -   carpe diem   -   carpe diem   -   carpe diem