Microbits 2 - Rock, Paper, Scissors

Let's Play Rock, Paper, Scissors with Microbit!
1 / 18
next
Slide 1: Slide
ComputingLower Secondary (Key Stage 3)

This lesson contains 18 slides, with interactive quizzes, text slides and 1 video.

time-iconLesson duration is: 50 min

Items in this lesson

Let's Play Rock, Paper, Scissors with Microbit!

Slide 1 - Slide

This item has no instructions

Learning Objective
At the end of the lesson, you will be able to write a program using the Microbit make code editor, create a game of Rock, Paper, Scissors, and download it to your Microbit to play with a partner.

Slide 2 - Slide

Introduce the learning objective and ensure that the students understand what they will achieve by the end of the lesson.
What do you already know about programming and playing games with Microbit?

Slide 3 - Mind map

This item has no instructions

Make Code Editor
Make Code Editor is a web-based code editor that allows you to create games and other programs for your Microbit.

Recall task - Can you remember how to code a dice? The program should display a random number from 1 - 6 on the Microbit when it is shaken. Make sure you start your program from scratch.

Slide 4 - Slide

Explain what Make Code Editor is and how to access it.
How did you do?
Did you manage to code a functioning dice without support?

Did you use a variable in your program?

Slide 5 - Slide

Explain how to create the game and what elements are necessary.

Slide 6 - Video

This item has no instructions

Logic Blocks (Selection)
We will use the "Logic Blocks" to create an "If Else Ststement" to allow our Rock Paper Scissors Game to function.
You can drop variables into your comparison block

Slide 7 - Slide

Explain how to use the input buttons in the game.
Rock, Paper, Scissors
Rock, Paper, Scissors is a game where two players choose one of three options: rock, paper, or scissors. Rock beats scissors, paper beats rock, and scissors beat paper.

Slide 8 - Slide

Explain the rules of the game and how it works.
Making the Rock, Paper, Scissors game
  • You will need the following blocks.
  • A shake "input" block
  • You will need a logic block with 3 choices (use the plus to add the extra section)
  • A math block to choose a random number from 1 - 3
  • A variable to store a number from 1 - 3
  • The set block to initialise the variable
  • 2 comparison blocks where you compare the variable against the picture to display.
  • 3 LED graphics of the rock, paper, scissors symbols

Extension - can you tweak your code to turn it into a Magic 8 Ball that can tell your future?

Slide 9 - Slide

Explain how to use the display in the game.
Solution to the Rock, Paper, Scissors game
  • You will need the following blocks.
  • A shake "input" block
  • You will need a logic block with 3 choices (use the plus to add the extra section)
  • A math block to choose a random number from 1 - 3
  • A variable to store a number from 1 - 3
  • The set block to initialise the variable
  • 2 comparison blocks where you compare the variable against the picture to display.
  • 3 LED graphics of the rock, paper, scissors symbols

Extension - can you tweak your code to turn it into a Magic 8 Ball that can tell your future?

Slide 10 - Slide

Explain how to use the display in the game.
Plenary
Testing what you have learnt in today's lesson.

Slide 11 - Slide

This item has no instructions

What programming language was used to write the 'Rock, Paper, Scissors' game for the microbit?
A
MakeCode
B
Python
C
Java
D
C++

Slide 12 - Quiz

This item has no instructions

What input block does the 'Rock, Paper, Scissors' game on the microbit use?
A
Button
B
Shake
C
Light
D
Sound

Slide 13 - Quiz

This item has no instructions

What type of block is used to make comparisons in the 'Rock, Paper, Scissors' game for the microbit?
A
Logic
B
Variable
C
Math
D
Text

Slide 14 - Quiz

This item has no instructions

What type of block is used to store a value that can change in the 'Rock, Paper, Scissors' game for the microbit?
A
Variable
B
Text
C
Math
D
Logic

Slide 15 - Quiz

This item has no instructions

Write down 3 things you learned in this lesson.

Slide 16 - Open question

Have students enter three things they learned in this lesson. With this they can indicate their own learning efficiency of this lesson.
Write down 2 things you want to know more about.

Slide 17 - Open question

Here, students enter two things they would like to know more about. This not only increases involvement, but also gives them more ownership.
Ask 1 question about something you haven't quite understood yet.

Slide 18 - Open question

The students indicate here (in question form) with which part of the material they still have difficulty. For the teacher, this not only provides insight into the extent to which the students understand/master the material, but also a good starting point for the next lesson.