CONTROLS: A or B (micro:bit): Show the smile. Shake the micro:bit: Show a randomized number from 1 to 6. Version history: v1.0.0 PUBLIC BETA: This project is shared!
NOTE 1: If you see your micro:bit freezing on one frame, it isn't your micro:bit freezing, it's a deliberate animation design choice from me for the animated transitions from a number or the smile to another number or the smile. Also, this project took a bit to release, but there might need to be some bugfixes after I've shared this. Tell me about it in the comments! NOTE 2: To connect a micro:bit to a Scratch project like this one, first install Scratch Link. Find Scratch Link at https://scratch.mit.edu/download/scratch-link. Before connecting the micro:bit, see https://scratch.mit.edu/microbit for more instructions. Then, see inside, click on the micro:bit extension, and click on the yellow circle with the exclamation mark inside. Look for your micro:bit and connect it. Now you can use your micro:bit as a dice! CONFIRMED TO WORK ON A MICRO:BIT: I tested this on my micro:bit v2 and it worked just fine! I don't know about a micro:bit v1, as I neither own one, nor did I even think about compatibility for one. CREDITS: Microsoft for the MakeCode for micro:bit platform and the original version of this project, the dice example, as well as Windows 7.