Grades 6–8

If-Then Robot

Predict the robot’s action. Get 5 of 7 right to earn the badge.

Part of Robotics & Engineering: Robotics Engineers

Question 1 of 7 · Score 0

distance = 5. What does the robot do?

if distance < 10:
    stop()
else:
    forward()

What this game teaches

  • if / elif / else decisions
  • Sensor values drive behaviour
  • From blocks to early Python

Play together

  • Play “robot”: one person reads sensor values, the other acts out the code.
  • Write your own if-then rule for a robot pet.
Want more? This game comes from Robotics & Engineering: Robotics Engineers

Engineering design with motors and sensors, coded with blocks then early Python, ending in a team mission challenge.

See the program

More Robotics games

All arcade games