Robot Challenge: Stay in Ring Beginner

Stay in Ring thumbnail

Challenge Description

Robot Challenge Description: Stay in Ring Beginner – eBot is on a SUMO ring either white with a black ring or black with a white ring and must stay inside the ring using the LHS light sensor.

Code the eBot sprite so that eBot behaves as below:
– continuously moves without stopping for more than 1 second
– always stays inside the ring
– never drives completely over the black ring line
– reverses first when over the black line so that it’s back end doesn’t go outside the black ring

Flowchart

Project Flowchart

Submission