Codey Rocky: Sports Game Predictor (Grade 6-8)


In this lesson, students will learn the value of randomness and conditionals in data within the sports world and how both can help predict whether or not a team will win or lose a game.


1. By the end of this lesson students will be able to describe what conditionals and randomness are and how they work in code.

2. By the end of this lesson students will be able to program a sports game predictor on Codey Rocky.

Curriculum Connections Summary

  • Ontario - Mathematics - Algebra (Coding)
  • Quebec - Mathematics
  • New Brunswick - Mathematics
  • Nova Scotia - Mathematics & ICT
  • Alberta - Mathematics & ICT
  • British Columbia - Mathematics & ADST
  • Manitoba - Mathematics
  • Prince Edward Island - Mathematics
  • Saskatchewan - Mathematics
  • Newfoundland & Labrador - Mathematics
  • Yukon Territories - Follow's B.C.'s Curriculum
  • Northwest Territories - Follows Alberta's Curriculum
  • Nunavut - Follows Alberta's Curriculum

Find Out More

Codey Rocky
Codey Rocky

Write your first line of code!

Codey Rocky combines hardware with software, allowing children to learn about programming while they play and create. Using mBlock, a software which supports both blocked-based and Python programming, Codey Rocky takes children by their hands and leads them into the world of technology with its in-built AI and IoT functionalities, giving them a competitive edge in the AI era.