mercredi 4 février 2015

Swift - Generate a random path

I am trying to create a simple maze, that will be based on a grid, 5x9 (for the iphone 5) The maze will be made with simple white squares(path) and black squares (the walls). How is it possible to generate a code that will make the path totally random, but will always be passable. Thanks in advance.





Aucun commentaire:

Enregistrer un commentaire