Direction:
Direction codes tell your Ozobot what to do at an intersection.
* Make Ozobot to go LEFT at the next intersection.
Use the following sequence:
Black- Green- Black- Red- Black
* Make Ozobot to continue STRAIGHT at the next intersection.
Use the following sequence:
Black- Blue- Black- Red- Black
* Make Ozobot to go RIGHT at the next intersection.
Use the following sequence:
Black- Blue- Red- Green- Black
* Make Ozobot to LINE JUMP LEFT.
Immediately turn 90 degrees to the left,
move forward in the blank space to a new line,
then make a random turn to follow along the new line.
Use the following sequence:
Black- Green- Red- Green- Black
* Make Ozobot to LINE JUMP STRAIGHT.
Continue straight in the blank space after the line ends.
The code will not work if Ozobot encounters an intersection before the line ends.
Use the following sequence:
Black- Green- Blue- Green- Black
* Make Ozobot to LINE JUMP RIGHT.
Immediately turn 90 degrees to the right,
move forward in the blank space to a new line,
then make a random turn to follow along the new line.
Use the following sequence:
Black- Red- Green- Red- Black
* Make Ozobot to perform a U-Turn.
Turn around 180 degrees and follow the same line in the opposite direction.
Use the following sequence:
Black-Blue-Red-Blue-Black
* Make Ozobot to perform a U-Turn end of line.
Turn around 180 degrees since the line has ended
and follow the same line in the opposite direction.
Use the following sequence:
Black-Blue-Red