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

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -