Getting Started Guide

CLASS 3
26
Programming the Moving Bot
If we wanted to write four programs to control the moving bots, the flow chart would look like the one below.
Learning Coding of Moving Bots
Yes
Yes
Is the left
IR sensor
covered?
Is the left
IR sensor
covered?
Is the left
IR sensor
covered?
Is the left
IR sensor
covered?
Is the right
IR sensor
covered?
Is the right
IR sensor
covered?
Is the right
IR sensor
covered?
Is the right
IR sensor
covered?
Go ahead
go left
go right
Stop
Yes
Left
sensor
Right
sensor
No
No
No No
Yes