- Customizable
-
- Walls/Blocks that the "player" cannot pass thru
-
- Has a "x", which once touched, you finish it
- Check each direction (up, down, left, right)
- Select a random direction (with random module)
- In "background", try each direction and alculate the distance from the "player" to the "x"
- The direction that is "valid" (can pass) and is closest (to the "x") than the other ones gets selected
- Loop it until it gets completed
- Print the final path to the user