- If the player is auto exploring
- Any key pressed: stop exploration
- Any visible enemies: stop exploration
- Any path we are already following:
- Yes: move the player one tile along the path
- No: make a list of all things that can be picked up (items, farming materials)
or interacted with (doors, chests)
- Is the number of items in the list we just made > 0?
- Yes: generate a path (A*) to each, choose the shortest,
store it to follow in the next iteration
- No: stop exploration
That's generally all there is to it.