Help the friendly robot (🤖) find it’s way home? The rules are following
  • Count how many steps it takes to reach (E)
  • Robot starts at character S
  • Starting direction is always up
  • When robot hits obstacle (#) it turns right (up, right, down, left, up, …) and continues forward
  • (S) character is treated as empty space
  • (E) character is counted as step
  • Make a note of the MAP_CODE in the first line, you’ll need it in answer
Note: new map is generated on every page load, so if you get stuck, just try with a new map.

        
Answer:

( In the following format: MAP_CODE:NUMBER_OF_STEPS )

Code you used to solve the problem:


Takaisin ylös