Microbit: Rock, Paper, Scissors game

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

Cette leçon contient 15 diapositives, avec quiz interactifs, diapositives de texte et 1 vidéo.

time-iconLa durée de la leçon est: 50 min

Éléments de cette leçon

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

Slide 1 - Diapositive

Cet élément n'a pas d'instructions

Learning Objective
You can 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 - Diapositive

Introduce the learning objective and ensure that the students understand what they will achieve by the end of the lesson.
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 3 - Diapositive

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 4 - Diapositive

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

Slide 5 - Vidéo

Cet élément n'a pas d'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 6 - Diapositive

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 7 - Diapositive

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


Slide 8 - Diapositive

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


Slide 9 - Diapositive

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

Slide 10 - Quiz

Cet élément n'a pas d'instructions

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

Slide 11 - Quiz

Cet élément n'a pas d'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 12 - Quiz

Cet élément n'a pas d'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 13 - Quiz

Cet élément n'a pas d'instructions

Write down 3 things you learned in this lesson.

Slide 14 - Question ouverte

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 15 - Question ouverte

Here, students enter two things they would like to know more about. This not only increases involvement, but also gives them more ownership.