Turing Maze

Problem #267

Tags: turing c-1 special

Who solved this?

No translations... yet

Sometimes troubles build up around as if one is in a maze! A-mazing! Let's make puzzle of it!

We are going to traverse some maze using our Turing Machine. Of course we need to extend it a bit, so it can operate in 2-Dimensional space instead of simple tape.

That's easy! Here is a sum of additions (check the article above for details):

Problem Statement

We have a maze with no loops (also called "simple" or "perfect"), represented with a rectangle filled with '-'s (passages) and 'W's (walls). One of the cells deep in the maze is marked with '$' - also passage, but additionally evil kobold's chest of gold is here!

Machine starts at top-left corner (which of course is '-') and should find the way to the chest. Mark this way by turning corresponding cells to +.

For example consider the initial maze state and solution we wish:

  initial:                 solved:

--W----W--W              ++W-+++W--W
W-WW-W-WW-W              W+WW+W+WW-W
-----W----W              -++++W+++-W
-WWWWWWW-W$              -WWWWWWW+W+
----WW-----              ----WW--+++
You need to login to get test data and submit solution.