Search code examples
puzzle

Puzzle from Ecole 42 evaluation


puzzle

This is Evaluation game 2 for Ecole 42. I'm stuck with this one in my mind. Is there any solution or suggestion for this one?


Solution

  • I got stuck in this one too. I wonder if this could be a good solution, but can't test it...

    f0 - {if red turn left / forward / if blue f1 / f0 }

    f1 - {forward /if red turn right / if blue f0 / f1}

    like a zig-zag and the blue box do the shift of the turn side...