CS 111
Fall 2016
Introduction to Computer Science
Lab04: Pacman
This is a collaborative lab experiment.
You have played with using John Zelle's graphics.py
in the previous lab and homework.
Instead of using primitive graphical elements such as Circle
and Polygon
, I want to create a cool new graphical class called Pacman
.
I want you to help me.
Tasks
- Brainstorm and design the interface of the class: what methods should it implement? What should they do?
- Decide what primitive graphical elements we want to use, give them names, and decide on what variables our
Pacman
class should have access to. - Divide up some tasks for implementing various methods. Get to work.
- pacman0.py -- skeleton file
- pacman1.py -- with methods defined
- pacman2.py -- what we ended up with in class
- pacman.py -- polished code after class
- pacmantest.py -- test multiple Pacmans
- You may wish to refer to the graphics.py documentation.
- If you are done with your assigned task, you may choose to work on other parts.