Lesson 10

Games

The micro:bit can be used to create games. Let's create the Scissors-Paper-Stone game.

Task 1

  • Program the micro:bit to display Scissors, Paper or Stone.
  • When there is a 'shake', the micro:bit will display randomly Scissors, Paper or Stone.

Task 2

  • Program the micro:bit to keep track of the scores.
  • When Button A is pressed, it will display "WINS" and adds 1 point to the score.
  • When button B is pressed, it will show the total score.