All lessons

Variables & Robot Math 🔢

Store sensor readings in typed variables and do robot-sized math (with a few surprises).

0/3 lessons done 75 XP total
  1. 1

    Variables Need Types

    int, double, String and boolean: labels for your robot's memory.

    25
  2. 2

    Robot Math (With Surprises!)

    +, -, *, / and the mysterious % — with eggs, seeds and robots.

    25
  3. 3

    Changing Values

    Count points, drain batteries and level up with ++ and +=.

    25