Objective:
Program your robot to navigate a coloured carpet, responding to different colours with specific movements. The robot should only stop when it finds the sequence yellow → red.
Challenge Rules (Phase 1 – Open Roberta)
Robot behaviour:
- Always move forward (moderate speed).
- When it detects blue → it turns 90º to the right and continues.
- When it detects green → it turns 90º to the left and continues.
- It will only stop if it detects yellow followed immediately by red (in that order!).
Reference mat:
Use the mat provided with coloured squares (random pattern or set by the teacher).
Technical requirements:
Colour sensor configured to read the colours of the mat.
Movement blocks (forward, turn) and control (conditional if-then).
Success criteria
The robot responds correctly to blue (right) and green (left).
It stops only in the exact sequence yellow → red.
It doesn’t get lost or stuck in endless loops!