Rock paper scissors
Everyone knows the game rock paper scissors. How cool would it be if you programmed a gaming computer which shows you one of those options every time you shake it!
Shake the micro:bit to see what it chooses. Press A when you win, press B when the micro:bit wins.
You’ll be learning:
- How to use variables.
- How to use the block “choose random”. How to use and adjust the “if...block.
Take a look at the example and consider the following questions:
What should I do?
What are the goals?
What are the expectations?
What can I already do?
What do I still have to discover?
View the steps at 'perform'. Then answer the following questions:
- Which steps should I follow?
- Which steps can I follow?
- How much time do I need?
- What tools do I need?
Do the steps one by one. Do you not remember how to do it? View the hints or download the solution.
Look back at the project you just made. Ask yourself the following questions:
Does the program work as I expected? Why / why not?
What works well?
What works less well?
How can I approach it differently?