actionscript 3 - RandomGenerated Map with Path from start to end -


i wanted randomly generate new 2d array (my map) , ensure has @ least 1 path start point end point.

right have static grid , have pathfinding algorithm working properly. question best approach develop this? easiest way create grid , iterate through ensure path open?

i think worst-case scenario randomly generate 1 , path find if false returned randomly generate another, inefficient. please help!


Comments

Popular posts from this blog

jQuery Mobile app not scrolling in Firefox -

c++ - How to add Crypto++ library to Qt project -

how to receive file in java(servlet/jsp) -