Learning Intention:
Understand using variables and logic such as 'IF' blocks.
1. Watch the videos on VARIABLES and DECISIONS:
2. Make sure you have completed the 'ROCK PAPER SCISSORS' activity:
In the 'ROCK PAPER SCISSORS' activity, a variable called HAND is used to hold a random number between 1 and 3. This number is then used to decide whether to display paper, scissors or rock.
3. Go to MAKECODE EDITOR in microbit.org and click 'NEW PROJECT' to start a new project. Your task is to make the dice project show a display which looks like a dice. Use an 'IF' block like in the Rock Paper Scissors project. Display a single dot for a 1, two dots for a 2 etc.
Here is the start of the program:
4. Download your code to your ROB folder and post the simulator code on your blog. Here's the video again showing you how to do this: