Share your repls and programming experiences

← Back to all posts
TerrorbuildLuna (38)

So, I've been working on an Ascii pathfinder. Here it is now! Please feel free to give any suggestions for me to improve my code.

You can easily edit the maze in the text file named "map". Please try to make the maze a rectangular shape, as I haven't figured out how to allow for irregular shapes.

0 = blank space
1 = wall
2 = start
3 = goal

You can move the goal around after you start the program, with the keys wasd. You can also move the agent with the keys yghj.