KittyCode Programming Challenge

Make a Coin Flipper with Your micro:bit

Program your micro:bit to mimic flipping a coin.

1 - Start a new project in MakeCode

Go to "" 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:

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:

Hooray! You did it!

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