Before clicking the tips bags below, please take a breath and try again by yourself... :-)
START A BIT > Projects Library > PJ007: Wire game with Micro:bit > This page
These are all the needed building blocks, please find them out. If having no idea of what to do next, please think about the programming requirement.
Variables ->
Make a variable...Â
Advanced -> Pins ->
Basic ->
Basic ->
Music -> Tone ->
Logic -> Conditionals ->
Logic -> Comparison ->
Input ->
Basic ->
Basic ->
Advanced -> more -> Pins ->
Before using the variable, remember to set an initial value on start! Keep in mind that initialization is always a good point to think about in programming.
If you assemble these blocks like below, it detects if the probe touches the wire-path.
Here is the situation when there is a touch, and the amount of touches doesn't reach 10 yet, so it's a normal warning sound and showing the counting on LED matrix. We hope you figure out other branches from now.
Here it is, we believe you can figure out by yourself.
These are all needed for this program. It's not recommended to copy a work, but if it works better for you, it's fine, then you need to figure out why, because normally the tutor knows who clicks this, and you need to explain this to the class in the presentation part after all.
This is a ready-baked take away in MakeCode, you can directly download to your Micro:bit to test.