4,990
edits
(→Theory) |
|||
Line 31: | Line 31: | ||
== Example Code == | == Example Code == | ||
Zig Zag never drives straight. Either | The ''Zig Zag'' never drives the robot straight. Either the robot turns to the left or to the right. However, the robot can be made very fast, and reliable---of course depending on the line. The turning part is coded into ''if else'' block which is in the loop that continuously examines the line. | ||
== Exercises == | == Exercises == |