9.9. The Pong Game (Optional)

This lesson reinforces the use of procedural abstraction in programming to generalize solutions. Students have two options: 1) Build Pong from Scratch or 2) Enhance a Basic Pong App. Pong was one of the first computer games and consists of a paddle controlled by the user and a ball, which bounces off the edges. Students add enhancements that should use procedures to provide generalized solutions and require if/else statements.

Professional Development

The Student Lesson: Complete the activities for Mobile CSP Lesson 9.9 The Pong Game.

Materials

9.9.1. Learning Activities

Estimated Length: 90 minutes (Option 1) or 45 minutes (Option 2)

  • Hook/Motivation (5 minutes): Show a demo of the Pong game and ask students to work in small groups to brainstorm the types of components needed, the events, and other functionality. Have the groups share with the class then examine the starter app.
  • Experiences and Explorations (60 minutes - Option 1; 25 minutes - Option 2)
    • Walkthrough - Option 1: Build Pong from Scratch (40 minutes): Walkthough the Pong Tutorial starting from scratch with the students.
    • Walkthrough - Option 2: Enhance a Basic Pong App (5 minutes): Walkthrough the Pong Tutorial starting from the template with the students.
    • Creative Programming (20 minutes): Ask students to complete the enhancements to the Pong app. Inform the students that they must make incremental additions to the working pong game. They should complete an enhancement and then test the app before moving on, making sure that they test before each new enhancement is added. When testing the app, the students should ask themselves if the app does what it is intended to do. Remind students as needed that they can generalize solutions by using procedures with parameters.
  • Rethink, Reflect and/or Revise (10 minutes): Review the Pong enhancement solutions. Discuss what issues the students encountered while enhancing the Pong app and review the if, if-else, and procedural abstraction with parameters. Have students post a reflection on their portfolio and complete the interactive exercises.

9.9.2. Professional Development Reflection

Discuss the following questions with other teachers in your professional development program.