This lesson contains 15 slides, with interactive quizzes, text slides and 1 video.
Lesson 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
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 - Slide
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 - 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 4 - Slide
Explain how to create the game and what elements are necessary.
Slide 5 - 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 6 - 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 7 - 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
Slide 8 - 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
Slide 9 - Slide
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
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 11 - 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 12 - 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 13 - Quiz
This item has no instructions
Write down 3 things you learned in this lesson.
Slide 14 - 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 15 - 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.