How to use the
Learning Portal

Learning Portal

Our hands-on, comprehensive lesson plans span a range of levels. Browse our free STEM and coding learning resources.

Marty Image

1.23 – Hack Snakes & Ladders

45 Minutes

Lesson Overview

In this lesson, students will explore snakes and ladders with a twist where Marty is the counter and our Micro:Bit is the dice. Students will need to think about what a dice is and how it works before thinking about how they are going to play the games and what additional rules they want to add to the game.

Key vocabulary:
    Micro:Bit , Random number , User Interaction , Rules , Event , Computational Thinking,

Content Sections

  • Learning Objectives
  • Extensions & Challenges
    • Additional Reading
    • 1.23 – Hack Snakes & Ladders

      45 Minutes

      Lesson Overview

      In this lesson, students will explore snakes and ladders with a twist where Marty is the counter and our Micro:Bit is the dice. Students will need to think about what a dice is and how it works before thinking about how they are going to play the games and what additional rules they want to add to the game.

      Key vocabulary:
        Micro:Bit , Random number , User Interaction , Rules , Event , Computational Thinking,
      • Lessons 1.1-1.14 & 1.19-1.20
      • Laptop or PC
        • Marty the Robot
        • Marty Workbook (Lesson 5)
        • Laptops/Computers with Scratch Link installed
        • Access to the Scratch 3 editor
        • BBC Micro:Bit
        • Snakes and ladders game board

      Learning Objectives

      • Consider the attributes of a dice and write a program to recreate one on the Micro:Bit
      • Program Marty to act as our counter on the snakes and ladders board
      • Explore additional rules and ideas to extend the game and make it their own

      1. Ask students to describe how you play snakes and ladders

      a. What do you need? How do you set it up? What are the rules? Who goes first? What happens when you take your first turn? And the rest of the turns? How do you know when the game ends?

      2. Start going through the list of things that we need to play but we realise that we have forgotten a dice, is there anything that we could use to replace the dice?

      a. What is a dice? How does it work? Can I get the same number every time? What device has a screen to display the number? What device has sensors in it so that I can shake it to roll a number?

      3. Break students into small groups of around 2-3 per Marty and Micro:Bit, the team then has a series of programming tasks which they should test each time that they add something new

      a. Firstly, they need to make a dice on the Micro:Bit starting off with displaying a random number and then ensuring that this random number appears when you shake the device

      b. Next, we need to program Marty to respond to the number we have just rolled on our dice, he needs to walk forwards the correct number of steps

      c. What about when we land on a snake or a ladder? We will need to roll again but when we land on a snake, we will need to tell our program that we need to go backwards instead of forwards – are there any other gestures we could use like clicking buttons A and B at the same time to do this?

      4. Students should challenge another student group to a game of snakes and ladders to fully test out their programs and see who can win

      Extensions & Support

      • What other rules could be added onto the game to make it easier or more difficult? For example, if you land on a certain coloured square then you have to answer a computing question correctly to stay there
      • What would make it easier for you to win? Could you implement this into your dice secretly without your opponent finding out?
      • Can you add in a winning dance for when Marty reaches the end of the game? Could you program him to do this movement without prompting him first? (For example, keeping track of what square you are on in your program?)

      Additional Reading

      • Educator’s Guide
      • Introduction to Programming with Marty using Scratch
      • BBC Micro:Bit Quick Start Guide for Teachers (https://microbit.org/guide/quick/)