In this project, children will make a reaction game. An image will be displayed on the micro:bit after a random amount of time - the first person to press their button is the winner.
Children will make use of all of the coding concepts used in previous projects, as well as using Boolean operators to wait until a button has been pressed.
For this project, the MakeCode (PXT) microbit editor should be used.
You can find a completed version of this project at makecode.microbit.org/#pub:50800-81674-84873-32898, and the compiled .hex file can be downloaded by clicking the ‘Download Project Materials’ link for this project, which contains:
There is also a version of the project with the “Keep score” challenge completed. This can be found at makecode.microbit.org/#pub:23812-11544-45113-45147, and the compiled .hex file can be downloaded by clicking the ‘Download Project Materials’ link for this project, which contains:
- Boolean operators:
This project covers elements from the following strands of the Raspberry Pi Digital Making Curriculum:
- “Choose your own image” - changing the image displayed on the micro:bit.
- “Choose your own delay” - changing the parameters to the
- “Keep score” - use variables to keep track of player scores.