In our Creativity Hour, Primary 1-3 took their coding skills to the next level by programming the Micro:bit to play Rock, Paper, Scissors. Building on what we’ve learned previously, this activity was slightly more advanced as we had to use variables to create this game. We used Micro:bit Classroom – this is a digital classroom where we can connect iPads to manage and guide children through the coding sessions. This allowed us to follow a tutorial together and provide support through each step to make sure we could manage the task effectively.

We coded the Micro:bit to generate a random number (1-3) whenever it was shaken and the number would represent either rock, paper or scissors. We then programmed the Micro:bit to display an icon for each choice which introduced the idea of variables.


It was exciting to see the children test their creations, shaking their Micro:bits and watching the results appear on the screen. Once we had a functioning game, the children went around the class, challenging their friends and teachers with the Micro:bit – we wanted to find out who would win, Humans or the Micro:bit! By the end of the session, the children had a working game and a better understanding of using variables in code!


