Rules: The objective is to move the spaceship to the star marked square.
left-arrow: turns the spaceship 90º to the left.
right-arrow: turns the spaceship 90º to the right.
move-forward-arrow: moves the spaceship one square forward.
f0: calls teh f0 (initial) fucntion.
You can add either the red or green colors to a command to make it an if then statement (Ex: If I add red to a move-foward-arrow the spaceship will only move foward when it is situated in a red square. This also applies to the f0 command).
If you can find a solution, either using your mind only or building a program that solves it please let me know!