Question: Java code for this: Create a program to simulate the Drunkards walk. The following shall minimally support this: 1. A grid of at least 10
Java code for this:
Create a program to simulate the Drunkards walk.
The following shall minimally support this:
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
5. Add a menu item that supports the user selecting the size of the grid and drawing/using it as specified in items 1 - 4 above.
snapshots of before and after the code is run:

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
