top of page
KittyCode Programming Challenge

Make a Coin Flipper with Your micro:bit

Program your micro:bit to mimic flipping a coin.

New project.png

1 - Start a new project in MakeCode

Go to "MakeCode.microbit.org" to start a new project by clicking the new project icon above. Click the purple plus box labeled "New Project" to begin.

2- Create Your Coins

Choose two icons to represent the "heads" and "tails" on a coin. Then program your micro:bit to choose one icon randomly when you press the "A" button. Try these blocks:

1_basic.png
Screen Shot 2019-08-06 at 3.01.43 PM.png
7_Logic.png
If Else.png
2_Input.png
microbit_memorygame_step3.png
9_Math.png
Screen Shot 2019-08-06 at 3.07.00 PM.png
Need Help_ Heres a Tip.png

3- Animate It! 

In order to make the micro:bit look like it's flipping a coin, program your icons to appear before a random one is picked. Try these blocks:

1_basic.png
Screen Shot 2019-08-06 at 3.01.43 PM.png
Need Help_ Heres a Tip.png

Hooray! You did it!

If you need help, click me to see the finished product!

Plus.png
bottom of page