GridWorld Case Study
Case studies are a teaching tool used in many disciplines. They have been a part of the AP Computer Science curriculum since the 1994-95 academic year. Case studies give students an opportunity to:
- Read source code written by someone else.
- Work with a program of significant length.
- Become familiar with good coding, design, and documentation practice.
- Learn about testing in a non-trivial context.
- Think through design and implementation tradeoffs.
- Experience an approximation of the master/apprentice relationship.
The GridWorld case study provides a graphical environment in which students can experiment with different types of objects and observe how programming changes will affect the behavior of those objects. It is a required part of the AP Computer Science A and AB curricula. (Computer Science A students are expected to be familiar with the material in Parts 1-4 of the case study narrative; Computer Science AB students are expected to be familiar with the material in all five parts.)
The case study consists of a narrative and a zip file containing the program code and documentation. There are three folders in the zip file: the framework folder that contains the black box code for the graphical environment; the projects folder that contains code for which students are responsible; and the javadoc folder that contains the documentation for GridWorld. The index file in the javadoc folder can be used as a starting point for viewing the documentation.
Please note that if you have a version watermark such as "0.96" displayed in your output window, you do NOT have the final version of the code installed. To correct this problem, download the Zip File below and follow the instructions in the Installation Guide, being sure to install the current version of the jar file.
- Code (.zip/238KB)
Student Manual (Narrative and Appendixes as a Single Document)
- Student Manual (.pdf/633KB)
Narrative as individual files:
- Part 1: Observing and Experimenting with GridWorld (.pdf/211KB)
- Part 2: Bug Variations (.pdf/285KB)
- Part 3: GridWorld Classes and Interfaces (.pdf/156KB)
- Part 4: Interacting Objects (.pdf/224KB)
- Part 5: Grid Data Structures (CS AB only) (.pdf/150KB)
Support material for GridWorld
- Installation Guide (.pdf/172KB)
- Appendixes (Quick Reference A document) (149KB)
Important Note About PDF Files
Many files on AP Central are saved in Adobe® PDF format. To download a PDF file to your computer before printing, right click and choose "Save Target As..." on a PC. On a Mac, simply hold down the button until the "Save As..." prompt appears. You will need to use the Adobe® Acrobat® Reader® to view PDF files. If you don't have Acrobat Reader 6.0 or higher installed on your computer, choose the link for the Adobe Acrobat Reader below in "See also" for installation instructions. For help downloading and printing PDF files, choose the "PDF Troubleshooting" link in "See also."