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.22 – Fastest Reaction

45 Minutes

Lesson Overview

Students will be creating and building their own reaction game using the Micro:Bit to measure who has the fastest reactions. Except, there will be a twist! Marty will be placed in the middle of a game board so each time someone wins a round in the game, Marty moves one step closer to the goal. Students will need to consider the logic of deciding who has won each round of the game, how this will be displayed to users and how Marty will move along the game board.

Key vocabulary:
    Micro:Bit , Reaction , Infinite/Forever Loop , If Statement , Event , User Interaction,

Content Sections

  • Learning Objectives
  • Extensions & Challenges
    • Additional Reading
    • 1.22 – Fastest Reaction

      45 Minutes

      Lesson Overview

      Students will be creating and building their own reaction game using the Micro:Bit to measure who has the fastest reactions. Except, there will be a twist! Marty will be placed in the middle of a game board so each time someone wins a round in the game, Marty moves one step closer to the goal. Students will need to consider the logic of deciding who has won each round of the game, how this will be displayed to users and how Marty will move along the game board.

      Key vocabulary:
        Micro:Bit , Reaction , Infinite/Forever Loop , If Statement , Event , User Interaction,
      • Lessons 1.1-1.14 & 1.19-1.20
      • Laptop or PC
        • Marty the Robot
        • Marty Workbook (Lesson 4)
        • Laptops/Computers with Scratch Link installed
        • Access to the Scratch 3 editor
        • BBC Micro:Bit
        • Reaction game mat/board

      Learning Objectives

      • Consider how to decide who has the fastest reaction to a stimulus
      • Create and code a new game using the Micro:Bit and Marty
      • Consider how the user should interact with the Micro:Bit

      1. Start off by asking students to play a small reaction game themselves and think about how they decide who has reacted first and how accurate they think their decisions are

      2. We are now going to create a similar game using Marty and the Micro:Bit which should be completed in teams of around 2-3 students per Marty. Students should be encouraged to test their solution after each step

      a. After a random amount of time between 0 and 4 seconds, a symbol or image should flash up onto the LED display

      b. Next, we need to check for a button click from the players and based on that we need to display a message or a symbol to show who won that round

      c. Finally, we need to move our Marty on the game board appropriately based on who won

      3. Students should challenge each other to test out their solutions and see who has the fastest reaction!

      Extensions & Support

      • How would we change the program to make it easier for one player or more difficult for the opponent?
      • Reaction game tournament between teams in the class
      • Extend the game to have other levels/different challenges such as click when the light is in the centre of the screen and whoever gets the closest wins or click when you think 30 seconds has passed, etc.

      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/)