Using the Walker
class developed earlier, we can graphically follow a random walker as she moves through a “world” laid out on the computer screen.
Assume the screen is 120 blocks (characters) wide, and 25 blocks tall. The walker starts at the center of the screen and moves randomly from there. After each move:
Write a GraphicalRandomWalker
program that uses the Walker
class to implement this simulation.