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

arrays - PHP Shopping Cart Variable and Object errors -

mysql - java.sql.SQLException Parameter index out of range (1 > number of parameters, which is 0) -