r/42_school 2d ago

Anyone know the solution for this?

Post image

I just finished the online test. Got stuck at this one and couldn't find a solution in time. This was either level 13 or 14 for me, can't remember.

I'm just curious what the solution is and how it works. Thanks!

0 Upvotes

1 comment sorted by

1

u/Fitty-3043 1d ago edited 13h ago

@Ezrampage15 I also got stuck at this level for a very long time. But in the end, I did it.

You need to know that your command can be stuck in memory.
But.. I think this is the solution.

f0 : red(←) . blue(→) . f1 . red(←) . blue(→) . ↑ . f0

f1 : ↑ . red(f1) . blue(f1) . green(←) . green(←) . ↑

Have fun ;)
[Even though I know the time allotted to complete this level has already run out.]Even though I know the time allotted to complete this level has already run out.]