- Use watch kit to make a wearable dice.
- 1 x Watch kit
Asmmble our watch kit directly just like the picture below.
- Drag out an
on shakeblock from
- Create a variable
numand assign value to this variable with a random number among 0 to 5.
- Insert a
ifblock. When the random number picked is 0, then display one point. If the random number is 2, then display two points. And so on.
The link of the whole program: https://makecode.microbit.org/_fdYbizRa3VW4
You can also download the program from the page below.
- Every time when we shake our micro:bit, a random number is created.