BBC micro:bit – Rock Paper Scissors Game

rock-paper-scissorsFor this challenge you need to code your micro:bit so that when you shake the micro:bit a picture appears randomly.

There should be three possible pictures:

  • A picture of a rock,
  • A picture of a pair of scissors,
  • A picture of a paper sheet.

Download your code to your micro:bit and play the game with your friends, using one micro:bit per player.

Use will need to use the BBC micro:bit website to code this game.
micro-bit-logo

Solution


Extension Task


Reuse and adapt your code to transform your BBC micro:bit into a dice. Your code will need to generate a random number (between 1 and 6) and based on the value of this number display (using the LEDs) the corresponding face of the dice:
dice-faces

Did you like this challenge?

Click on a star to rate it!

Average rating 3.6 / 5. Vote count: 22

No votes so far! Be the first to rate this post.

As you found this challenge interesting...

Follow us on social media!

Tagged with: