Wyo VB Ch3Proj1 |
Write a program that allows the user to watch a mouse find its way through a maze. Your program must draw a maze with at least 10 horizontal and vertical lines using the Drawline method. Do not include any diagonal lines. Use a picture box with a suitable graphic as the mouse and use another
picture box and graphic
to indicate the end of the maze (e.g. a piece of cheese). When the
user clicks the Go menu command, use For loops
to send the mouse through the maze. The menu must contain a Reset command
that allows the user
to position the mouse back at the beginning of the maze. The menu must
also contain a submenu that allows the user to choose one of three
speeds: slow, medium, or fast. To control the speed of the mouse, use
a module-level variable named mintPauseAmount along
with this statement Threading.Thread.Sleep(mintPauseAmount) in
the body of each For loop. The program
must use the following menu with appropriate access keys: Your program must follow standard Windows conventions as well as our school's Visual Basic Coding Standards. Name your project Ch3Proj1. Staple your printouts in the following order:
|