Digitised just for you.
The classic game of Scissors, Paper, Stone is going digital this time.
We will be recreating the Scissors, Paper, Stone game on our favourite micro:bit
Method 1
You can use the steps below.
Please ensure you have set the download settings to your microbit.
Click on the Basic module
Draw out "Show LEDs" to coding area
Draw out "Show LEDs" and draw your scissors. Paper & Stone .
You may want to see Step 5 below.
Program your code as follows.
micro:bit codes have been colour coded for ease of reference. So look for the colour blocks.
...
1. On Shake
We will use the "shake" input to activate the 3 icons.
2. In Variable module,
Create a variable called dice.
3. In Maths module,
use the pick random number code block.
4. In Logic module, use the IF block.
Using the "+" sign, add Else-if & Else code block .
In Variable module,
Create a variable called dice.
In Maths module,
Set the pick random number from 1 to 3.