after a little lapse of attention
and saved by Luca , I can share with you this little stylistic exercise http://laughton.com/basic/programs/applications/Maze&PathFinder/The menu
: erase wall.
: draw wall.
- green pawn
: place the green pawn where you want : it's the start position.
- red pawn
: place the red pawn where you want : it's the end position.
: diagonal authorized or not for the PathFinder.
- show work
: show the pathFinder's work (slower).
: launch the PathFinder.
- Maze Generator
: create a new Maze.
: erase the field : with - / + you can increase or decrease the size of the field.
Sorry for little devices : this program need to be precise on touch (using a stylus maybe) and to be a little bit patient with the CPU...!
But you can choose a smaller size field.
Obviously the code could be improved but I needed a quick search of a cell in a list, and I choose to use strings and Is_In().
I don't know if this is the best choice in RFO! relative to the processing speed.
On my tablet Nexus7 I have an average of 6 sec. for PathFinder for 41x41 size with not diagonal and not show work.
What's funny is that it will never take exactly the same time if you restart the PathFinder on the same maze !