All tutorials

Code Rock Paper Scissors on a micro:bit with MakeCode

microbitmakecodeBeginner ⏱ 10 mins

Overview

In this project you will learn how to code your to play rock-paper-scissors using gestures and the . We will start by understanding the basic game logic and how to present rock, paper, and scissors on the LED matrix. You will discover how to use selection for the micro:bit's choice and show it on the LED matrix, so players can see what the micro:bit picked and work out whether they have won. Through this project you will develop fundamental coding concepts like , conditionals and random numbers while creating something fun and interactive. By the end you will have a fully functional game that you can play with friends or challenge the micro:bit yourself.

🎯

What you'll learn

  • How to create a
  • How to use the on shake function
  • How to use , else if and else statements
  • How to use numbers
  • How to show patterns on the