As much as I love the concept of coding in a sokoban clone, I really, REALLY hate that the game neglects to give me the ability to just run a simple check to determine if the player is facing a WALL.
Seriously, doing facing checks and box location checks are the only external stimuli the pawn (aka robot) gets, so no fancy loops.
I CRAVE THE LOOPS!!!
(Seriously, I could easily find the solution with inefficient code, but every fiber of my being screams in agony that I am wasting moves just to run into walls, especially on Hallways. The pawn is dumber than a roomba!)
Many of the puzzles were designed while keeping in mind that there is no instruction that checks if a wall exists. At least not directly.
Besides, checking for walls with an instruction would actually end up being less efficient for both time and code size. Some of those solutions wouldn’t even fit within the game’s line limit.