Mathematics Scratch Game
Expert
80 mins
Teacher/Student led
+280 XP
What you need:
Chromebook/Laptop/PC or iPad/Tablet

Match Simulator

In this lesson we will create an app that simulates the events and goals of a football match. Players will create their own 5 a side teams and play a simulated match. 

Teacher Class Feed

Load previous activity

    1 - Create a new Scratch project

    Create a new Scratch project and delete the cat sprite.

    https://scratch.mit.edu

    2 - Create the lists

    In the Data palette, create 3 new lists by clicking the 'Make a List' button.

    1. 'Team 1' this will store the names of the players on Team 1
    2. 'Team 2' this will store the names of the players on Team 2
    3. 'Events' this will store the events that can happen in the match like a player scoring or someone missing.

    3 - Create the variables

    We will need some variables to store values to help us run the game. Variables are things that we use to store some information such as the top score of a game or what level you're on.

    In the Data palette, create 5 new variables by clicking the 'Make a Variable' button.

    1. 'team' this will store which team the next event will be for
    2. 'player' this will store which player from the team
    3. 'minute' this will store the current minute of the match
    4. 'score team 1' this will store the score for Team 1
    5. 'score team 2' this will store the score for Team 2

    4 - Add a referee sprite

    We're going to use a referee sprite to call out the events that happen in the match. Add the Referee sprite from the sprite library and then drag the referee into the middle of the stage area.


    123learn · Online learning platform

    Unlock the full learning experience

    You're previewing this lesson. Get full access to this lesson and hundreds more — each one ready to teach, with interactive activities, printable resources and pupil progress tracking built in.

    Hundreds of curriculum-aligned lessons
    Interactive activities in every lesson
    Printable resources & progress tracking
    Copyright Notice
    This lesson is copyright of Coding Ireland 2017 - 2026. Unauthorised use, copying or distribution is not allowed.

    Scratch is developed by the Lifelong Kindergarten Group at the MIT Media Lab. It is available for free at https://scratch.mit.edu
    🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more