So I've got a two dimensional array with a start and a goal point. Let's say the start is 1/1 and the goal is 3/4. So what I need is to create a random way from the start to the goal.
I've tried using the a* algorithm but I need a random way. I'm pretty new to this kind of algorithms.
What I've already tried is trying to walk the two dimensional array randomly but is there a more efficient way or a library which does that?
Aucun commentaire:
Enregistrer un commentaire