Object-Oriented Design Lab

Mouse in a Maze Program Specification

Alyce Brady
Kalamazoo College


Design a program to simulate mice moving through a maze until they find cheese.  A mouse always starts at the starting position, and moves one unit at a time.  Your program should be able to support mice with different movement strategies.

Your program should read in a maze configuration, including the starting position and the location of the cheese.  It should construct a number of mice, one at a time, with different strategies, letting each mouse run until it finds the cheese before putting the next mouse in the maze.  Your program should graphically display the state of the mouse and the maze at the end of each time unit.  When a mouse finds the cheese, your program should report how many time units it took for the mouse to find the cheese.