Simulator Challenge: Stay in Ring Core

Stay in Ring thumbnail

Challenge Description

Challenge Description: Stay in Ring Core – eBot is on a white circle with a black outside ring and must stay inside the black ring using the LHS light sensor and backing off the black line with a random direction.

Code the eBot sprite so that eBot behaves as below:
– continuously moves without stopping for more than 1 second
– always stays inside the black ring
– never drives completely over the black ring line
– moves as fast as possible
– randomly changes direction both forwards and backwards
– randomly backs away from the black 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