Predict, then run: Before you click Run, say out loud what the robot will do.
Were you right? If not, that’s sensor data — the code did exactly what it said.
Drive a shape: You traced a square. Try a triangle (turn(120), three times)
or a rectangle (two different side lengths).
Re-check calibration: Run straight(1000) one more time. Did it land on a
meter? Small adjustments add up.
Get Ready for Maze Runner (Next Session)
Think about a path through a room as a list of moves: “forward, turn right,
forward, forward.” That list is a sequence — exactly how mazes get solved.
Notice that you typed straight() and turn() over and over. Tomorrow we’ll give
those repeated moves names so the code reads like instructions.
Explore More (If Curious)
What’s the smallest distance the robot can reliably drive? The smallest turn?
Try a for loop that drives a square with a different side length each time.