Not Your Average Robot (Gr. 5-7)

Using Variables and Averages for a Fun Game of Bocce Ball!


The mBot and the mBlock software are both perfect tools to explore mathematics and the concept of variables. By using variables to store information on the robot, students will attempt to hit an exact target on a bocce ball 'field' and use Mean, Median, and Mode to determine the score.

Overall Curriculum Learning Goals

  • Mean/Median/Mode (Lesson Focus)
  • Variables (Math)
  • General Terms
  • Critical Thinking

Overall Coding Learning Goals

  • Variables (coding)

Educational Standards

• Grade 5 Mathematics – Data Management
• Grade 6 Mathematics – Data Management
• Grade 7 Mathematics – Data Management

British Columbia
• Grade 7 Mathematics – Statistics & Probability (Data Analysis)


• Grade 7 Mathematics – Statistics & Probability (Data Analysis)

Lesson Procedure

  • Class 1 - Intro to mBlock and Using Move Blocks (~30min)
  • Class 2 - Variables in mBlock and Understanding Averages (~30min)
  • Class 3 - Robot Bocce Ball Game (~60min)

Robots and Accessories

  • mBots

Other Supplies

  • Laptops
  • mBlock Software
  • Masking Tape (for field - optional)
  • Measuring Tapes
  • Worksheets (1 per student)

Find Out More


mbot is the best of both worlds, transitioning students from Scratch Blocks to Text Code