Last updated: Thu, 29 Jan 2015 12:52:15 -0500
Read these implementation guidelines.
Here are some slides with more information about how to design World programs.
Note: These slides are from a previous semester. We provide them because learning is often aided by looking at different presentations of the same material. However, previous iterations of the course had a different structure and different style requirements. Read these slides for their ideas only. When there are discrepancies, follow the rules of our current course.
Understand the guidelines in the function implementation tutorial.
Understand how to create World data definitions that only include properties that change over time.
Understand the importance of the review step and the things you should be looking for in the review step.
- Use the following data definition for Ball:
; A Ball is a (make-ball Coordinate Velocity) ; INTERP: the coordinate is the ball center's x position ; and the velocity is in pixels/tick.How does it affect the code? Which functions are easier to implement and which functions are harder?
What if we defined a subset of Coordinate called BallXCoordinate to describe the first field of Ball. Design such a data definition and think about how it would change the program.