|
While playing a puzzle game called Machinorium, I came across a particular puzzle that had me a bit frustrated. The puzzle was simple; 3 red buttons and 3 yellow buttons were placed on a row of seven holes, like this:
(Red) (Red) (Red) (Space) (Yellow) (Yellow) (Yellow)
The red buttons could only move to the right, and the yellow buttons could only move to the left. The rules were: A red button could move to the right as long as one of these two conditions were true:
(Red) (Space) -> (Space) (Red)
-or-
(Red) (Yellow) (Space) -> (Space) (Yellow) (Red)
And a yellow button could move to the left under similar conditions.
The challenge of the puzzle is figuring out how to get the sequence from:
(Red) (Red) (Red) (Space) (Yellow) (Yellow) (Yellow)
to this:
(Yellow) (Yellow) (Yellow) (Space) (Red) (Red) (Red)
Read on to get the solution...
|