Coding Games with Divisibility Rules
Slide 1

Coding Games with Divisibility Rules

Grade 6 Mathematics Ontario Curriculum 45 minutes

Today's Learning Goals
Slide 2

Today's Learning Goals

I can use divisibility rules to create logical flows in a game I can interpret and create flow charts to guide game design I can write simple code to make an interactive digital game I can collaborate with others to solve coding challenges

Quick Review Challenge
Slide 3

Quick Review Challenge

Which numbers are divisible by 3? 18, 25, 27, 34, 45 How can you tell without dividing?

From Flow Chart to Code
Slide 4

From Flow Chart to Code

Coding Platform Introduction
Slide 5

Coding Platform Introduction

Block-based programming is like building with LEGO Drag and drop commands to create logic If-Then statements control game flow Test and debug as you build

Teacher Demonstration
Slide 6

Teacher Demonstration

Watch as we code together: Create a number input Add divisibility test for 5 Program success/failure responses Test our mini-game

Success Criteria Checklist
Slide 7

Success Criteria Checklist

{"left":"Create a flow chart for your game logic\nUse at least one divisibility rule in code\nInclude if-then conditions","right":"Make your game playable\nExplain how divisibility rules work in your game\nTest and debug your code"}

Your Coding Challenge
Slide 8

Your Coding Challenge

Choose your divisibility rule (2, 3, 5, 9, or 10) Plan your game flow chart first Start with simple if-then logic Add scoring or feedback messages Test with different numbers

Differentiation Support
Slide 9

Differentiation Support

Need help? Try these strategies: Work with a coding buddy Use the visual flow chart template Start with divisibility by 2 or 5 Ask for step-by-step guidance

Debugging Challenge
Slide 10

Debugging Challenge

What if your code isn't working? Check your if-then conditions Test with simple numbers first Ask: Does my logic match my flow chart?

Game Showcase Time
Slide 11

Game Showcase Time

Share your creation with the class Explain your divisibility rule Show how your flow chart became code Test your game with volunteer numbers Celebrate your coding success!

Reflection & Next Steps
Slide 12

Reflection & Next Steps

'Coding is like solving a puzzle - each piece of logic must fit perfectly!' What divisibility rule was most challenging to code? How might you improve your game? What other math concepts could become games?