Maze Escape VB competition!

undifusion

New Member
Joined
Mar 14, 2009
Messages
6
Well heres the problem.
2rfyqgg.jpg

Anyone fancy having a bash at it? ;)
 
Thankyou! i got it working =D.Really nice bit of work Mike! But i was wondering if anyone might know how, instead of having the route being plotted out all at once, i could see the steps as it moves between the different cells? So when run you can watch it move along?
 
Last edited:
Upvote 0

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
You can modify this section of my sub SolveMaze, by un-comment outing the Call Delay. The sub Delay would have to be written, or copied from the OP depending on what you want.
How big is the maze you are looking at, with "big" defined by how many moves it takes to reach the goal?

Code:
  Rem display solution path
        For i = LBound(ReversePath) To UBound(ReversePath)
            'Call Delay
            With ReversePath(i)
                .Value = i
                .Font.ColorIndex = xlGuess
                '.Interior.ColorIndex = 3
            End With
        Next i
 
Upvote 0

Forum statistics

Threads
1,216,129
Messages
6,129,055
Members
449,484
Latest member
khairianr

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top