Number Rolls – Dice

Challenge

“Hey that roll is SO bogus! I can bet my last dollar that your dice is loaded!” Glowered Pepe.

Dai countered. “Don’t be so dramatic. Firstly, you don’t have any money to bet. And of course the dice are loaded, just LOOK at them!”

Playing snakes and ladders was a bit trying for the team because of the existing “equipment”. Pepe had tried to fashion his own dice but given that coconuts were the only thing around that he could carve, the resulting dice were definitely not up to regulation standards. Slightly ovoid dice with uneven sides that occasionally leaked coconut water did not make very good dice rolls. Being roughly the same size of the roller’s head also made tossing them a bit tricky.

“Sigh. I wish we had a better way to get some dice rolls.”

Additional Challenge

  • Try programming your dice to have scrolling animated images instead of a number for that authentic feel!

Learning Points

  • Use of random number
  • Utilising Variable to store and display numbers
  • Display on Micro:bit LED Array

Block Editor Code

Download the block editor code for this challenge. The hex file is contained in a zip folder.

Refer here for instructions on importing code into Micro:bit. 

This code can be imported into the micro:bit block editor.

Keep in touch

We would love to keep you up to date with all of our latest news, offers and new products.

If you would like to subscribe to our mailing list please click the button below.

Contact Us

ScienceScope Limited
Downside School
Stratton-on-the-Fosse
Radstock
BA3 4RJ
enquiries@sciencescope.uk

Follow Us

#digitaleducationjourney