A Natural Use of Recursion December 2012
Simulating a Game of Racquetball or Volleyball
 
 

Introduction

This Web site supports one Lesson, found within an AP CS A Curriculum Module, that considers how recursion can be used to simulate a game of racquetball or volleyball.

Due to severe space limitations, the Lesson focuses on these elements:

The Natural Flow of a Racquetball or Volleyball Game

The Lesson observes that a game simulation would naturally follow the flow of a racquetball or volleyball game. There are at least two basic approaches: