Assuming LEFT means counterclockwise rotation, my solution would be:
MOVE
MOVE
MOVE
LEFT
IF FLOWER: RIGHT
RIGHT
RIGHT
IF FLOWER: LEFT
LEFT
MOVE -> should have reached the goal
Sudoku for the digital age. A community to come up with and solve together Zacktronics-like games that can be solved only with a pen and a piece of paper (Zachtronics-like games are engineering-oriented puzzle video games and programming games).
Assuming LEFT means counterclockwise rotation, my solution would be:
MOVE
MOVE
MOVE
LEFT
IF FLOWER: RIGHT
RIGHT
RIGHT
IF FLOWER: LEFT
LEFT
MOVE -> should have reached the goal
That's how it would play out:
MOVE: MOVE: MOVE:
[T1][B1][F][B2][T2]
[ ][G][ ][G][ ]
[#][ ][#][ ][#]
[ ][ ][F][ ][ ]
[F][ ][ ][ ][F]
LEFT:
[T1][B1][F][B2][T2] (B1 and B2 face left)
[ ][G][ ][G][ ]
[#][ ][#][ ][#]
[ ][ ][F][ ][ ]
[F][ ][ ][ ][F]
IF FLOWER: RIGHT
[T1][B1][F][B2][T2] (Only true for B2)
[ ][G][ ][G][ ]
[#][ ][#][ ][#]
[ ][ ][F][ ][ ]
[F][ ][ ][ ][F]
RIGHT
[T1][B1][F][B2][T2] (B1 faces left, B2 faces up)
[ ][G][ ][G][ ]
[#][ ][#][ ][#]
[ ][ ][F][ ][ ]
[F][ ][ ][ ][F]
RIGHT
[T1][B1][F][B2][T2] (B1 faces up, B2 faces right)
[ ][G][ ][G][ ]
[#][ ][#][ ][#]
[ ][ ][F][ ][ ]
[F][ ][ ][ ][F]
IF FLOWER: LEFT
[T1][B1][F][B2][T2] (Doesn't apply for them both)
[ ][G][ ][G][ ]
[#][ ][#][ ][#]
[ ][ ][F][ ][ ]
[F][ ][ ][ ][F]
LEFT
[T1][B1][F][B2][T2] (B1 faces left, B2 faces up)
[ ][G][ ][G][ ]
[#][ ][#][ ][#]
[ ][ ][F][ ][ ]
[F][ ][ ][ ][F]
MOVE
[B1][ ][F][B2][T2]
[ ][G][ ][G][ ]
[#][ ][#][ ][#]
[ ][ ][F][ ][ ]
[F][ ][ ][ ][F]
No, that doesn't do the trick. But thanks for trying it out ;) Maybe want to give it another try?
If I understand your output correctly, you missed the two steps with the IF statements. Or rather, I wrongly wrote it directly after the IFs, since the instruction stated "the next line"
So here is the revised version:
MOVE
MOVE
MOVE
LEFT
IF FLOWER:
RIGHT
RIGHT
RIGHT
IF FLOWER:
lEFT
LEFT
MOVE -> should have reached the goal
Also, shouldn't they have collected the gems when walking over them?
You are right. My bad. Congratulations :)
Here the correct walk-through:
MOVE: MOVE: MOVE:
[T1][B1][F][B2][T2]
[ ][G][ ][G][ ]
[#][ ][#][ ][#]
[ ][ ][F][ ][ ]
[F][ ][ ][ ][F]
LEFT:
[T1][B1][F][B2][T2] (B1 and B2 face left)
[ ][G][ ][G][ ]
[#][ ][#][ ][#]
[ ][ ][F][ ][ ]
[F][ ][ ][ ][F]
IF FLOWER: RIGHT
[T1][B1][F][B2][T2] (Only true for B2; B2 now faces up)
[ ][G][ ][G][ ]
[#][ ][#][ ][#]
[ ][ ][F][ ][ ]
[F][ ][ ][ ][F]
RIGHT
[T1][B1][F][B2][T2] (B1 faces up, B2 faces right)
[ ][G][ ][G][ ]
[#][ ][#][ ][#]
[ ][ ][F][ ][ ]
[F][ ][ ][ ][F]
RIGHT
[T1][B1][F][B2][T2] (B1 faces right, B2 faces down)
[ ][G][ ][G][ ]
[#][ ][#][ ][#]
[ ][ ][F][ ][ ]
[F][ ][ ][ ][F]
IF FLOWER: LEFT
[T1][B1][F][B2][T2] (Only applies for B1; now faces up)
[ ][G][ ][G][ ]
[#][ ][#][ ][#]
[ ][ ][F][ ][ ]
[F][ ][ ][ ][F]
LEFT
[T1][B1][F][B2][T2] (B1 faces left, B2 faces right)
[ ][G][ ][G][ ]
[#][ ][#][ ][#]
[ ][ ][F][ ][ ]
[F][ ][ ][ ][F]
MOVE
[B1][ ][F][B2][T2]
[ ][G][ ][G][ ]
[#][ ][#][ ][#]
[ ][ ][F][ ][ ]
[F][ ][ ][ ][F]