"Draw a grid of 20 streets horizontally and 20 streets vertically. Represent the simulated drunkard by a dot, placed in the middle of the grid to start. For 100 times, have the simulated drunkard randomly pick a direction, move one block in the chosen direction, and draw the dot. Use classes for the grid and the drunkard."
I have the Grid class, the RandomWalk class, and the Driver class. Right now, the program runs a blank JFrame, with no button or anything else showing up.
My specific questions are: How do I show the grid using the driver, how do I show the JButton, and how do I create the Run method?
I have posted the three classes below.
Thank you very much :)