$30
CSC 123 - Extra Credit Project #2 -- Create a program to simulate the Drunkard’s walk.
The following shall minimally support to earn 25 points:
1. A grid of at least 10 x 10
2. Selection of a starting point in the grid via a mouse click on the grid
3. Motion; that is moving the “drunkard” from one grid-square to another until the
drunkard leaves the “building” (in other words the grid)
4. Output of the number of steps taken by the drunkard until he/she exits the grid
Figure 1: Snapshots of the Initial Selection and Final Step
A sample video is available at:
drunkards-walk.m4v
A. An extra 25 points can be earned for adding a menu item that supports the user
selecting the size of the grid and drawing/using it as specified in items 1 - 4 above.