Answer: Maze 397

Here is the way through Maze 397. The orange line shows Beep’s route from the top-left corner to the battery.

The solved maze 397 with the route drawn as an orange line.
The one true route through maze 397.

The route as arrow code

Each arrow is a direction and each number is how many squares to move. The whole route is 190 moves long and has 122 turns.

→ 1  ↓ 1  ← 1  ↓ 1  → 1  ↓ 4  → 2  ↑ 2  ← 1  ↑ 2  → 1  ↑ 1  → 2  ↓ 1  ← 1  ↓ 3  → 1  ↓ 2  ← 3  ↓ 1  → 1  ↓ 2  → 1  ↓ 1  ← 1  ↓ 1  ← 1  ↓ 1  → 2  ↓ 2  ← 1  ↓ 1  ← 1  ↓ 1  → 3  ↑ 4  → 3  ↓ 1  ← 1  ↓ 1  → 2  ↓ 2  → 1  ↑ 3  → 1  ↑ 2  ← 2  ↑ 2  ← 1  ↑ 1  ← 1  ↑ 1  ← 1  ↑ 1  → 2  ↑ 1  → 2  ↑ 1  ← 1  ↑ 2  ← 1  ↓ 1  ← 1  ↑ 1  ← 1  ↑ 3  → 1  ↓ 2  → 3  ↑ 2  → 2  ↓ 1  ← 1  ↓ 1  → 3  ↑ 1  ← 1  ↑ 1  → 3  ↓ 1  ← 1  ↓ 2  ← 1  ↓ 1  → 2  ↓ 1  ← 1  ↓ 1  ← 1  ↓ 1  ← 1  ↓ 1  ← 2  ↓ 1  ← 1  ↓ 2  → 1  ↑ 1  → 1  ↑ 1  → 2  ↓ 2  → 1  ↑ 1  → 1  ↑ 1  ← 1  ↑ 2  → 2  ↓ 4  ← 1  ↓ 3  → 1  ↓ 1  ← 2  ↑ 3  ← 3  ↓ 1  → 2  ↓ 3  ← 1  ↓ 1  → 4
Show the route step by step
  1. Go right 1 square.
  2. Go down 1 square.
  3. Go left 1 square.
  4. Go down 1 square.
  5. Go right 1 square.
  6. Go down 4 squares.
  7. Go right 2 squares.
  8. Go up 2 squares.
  9. Go left 1 square.
  10. Go up 2 squares.
  11. Go right 1 square.
  12. Go up 1 square.
  13. Go right 2 squares.
  14. Go down 1 square.
  15. Go left 1 square.
  16. Go down 3 squares.
  17. Go right 1 square.
  18. Go down 2 squares.
  19. Go left 3 squares.
  20. Go down 1 square.
  21. Go right 1 square.
  22. Go down 2 squares.
  23. Go right 1 square.
  24. Go down 1 square.
  25. Go left 1 square.
  26. Go down 1 square.
  27. Go left 1 square.
  28. Go down 1 square.
  29. Go right 2 squares.
  30. Go down 2 squares.
  31. Go left 1 square.
  32. Go down 1 square.
  33. Go left 1 square.
  34. Go down 1 square.
  35. Go right 3 squares.
  36. Go up 4 squares.
  37. Go right 3 squares.
  38. Go down 1 square.
  39. Go left 1 square.
  40. Go down 1 square.
  41. Go right 2 squares.
  42. Go down 2 squares.
  43. Go right 1 square.
  44. Go up 3 squares.
  45. Go right 1 square.
  46. Go up 2 squares.
  47. Go left 2 squares.
  48. Go up 2 squares.
  49. Go left 1 square.
  50. Go up 1 square.
  51. Go left 1 square.
  52. Go up 1 square.
  53. Go left 1 square.
  54. Go up 1 square.
  55. Go right 2 squares.
  56. Go up 1 square.
  57. Go right 2 squares.
  58. Go up 1 square.
  59. Go left 1 square.
  60. Go up 2 squares.
  61. Go left 1 square.
  62. Go down 1 square.
  63. Go left 1 square.
  64. Go up 1 square.
  65. Go left 1 square.
  66. Go up 3 squares.
  67. Go right 1 square.
  68. Go down 2 squares.
  69. Go right 3 squares.
  70. Go up 2 squares.
  71. Go right 2 squares.
  72. Go down 1 square.
  73. Go left 1 square.
  74. Go down 1 square.
  75. Go right 3 squares.
  76. Go up 1 square.
  77. Go left 1 square.
  78. Go up 1 square.
  79. Go right 3 squares.
  80. Go down 1 square.
  81. Go left 1 square.
  82. Go down 2 squares.
  83. Go left 1 square.
  84. Go down 1 square.
  85. Go right 2 squares.
  86. Go down 1 square.
  87. Go left 1 square.
  88. Go down 1 square.
  89. Go left 1 square.
  90. Go down 1 square.
  91. Go left 1 square.
  92. Go down 1 square.
  93. Go left 2 squares.
  94. Go down 1 square.
  95. Go left 1 square.
  96. Go down 2 squares.
  97. Go right 1 square.
  98. Go up 1 square.
  99. Go right 1 square.
  100. Go up 1 square.
  101. Go right 2 squares.
  102. Go down 2 squares.
  103. Go right 1 square.
  104. Go up 1 square.
  105. Go right 1 square.
  106. Go up 1 square.
  107. Go left 1 square.
  108. Go up 2 squares.
  109. Go right 2 squares.
  110. Go down 4 squares.
  111. Go left 1 square.
  112. Go down 3 squares.
  113. Go right 1 square.
  114. Go down 1 square.
  115. Go left 2 squares.
  116. Go up 3 squares.
  117. Go left 3 squares.
  118. Go down 1 square.
  119. Go right 2 squares.
  120. Go down 3 squares.
  121. Go left 1 square.
  122. Go down 1 square.
  123. Go right 4 squares.

A trick you can use: the hand-on-the-wall rule

Here’s an old maze trick. Put one hand on a wall at the start and keep it touching the wall as you walk. Never let go! In a maze like this one, where all the walls are joined together, you will always reach the end. It isn’t always the quickest way, but it never gets you lost.

Robot vacuum cleaners use a similar idea to follow the edges of a room. Following a simple rule over and over is a very computer-ish way to solve a problem.