'''lecture_33_pacman.py Simple implementation of the game Pac-Man Oliver W. Layton CS 151: Computational Thinking: Visual Media Fall 2020 TODO: Create `PacMan` class - Constructor: Setup black screen, custom pac-man turtle shape UPDATE 1: Create `setupEvents` method with keypress events, and `play` to listen for events and start main game loop. UPDATE 2: Create `placePellets(nPellets)` which returns a list of pellets (Turtle objects that are the pellets). - Add timer event for checking collisions with pellets, have the method queue up another timer event so that it can repeat. UPDATE 3: Use "mouse" (or trackpad) clicks to perform an action (e.g. change background color) - Create changeColor(self, x, y) ''' import turtle class PacMan: def __init__(self): pass def run(self): pass if __name__ == '__main__': game = PacMan() game.run()