In this project, Aditi created a fun game using the Microbit and Python coding, combining my love for music with technology. The aim of the game is to roll a number, and based on the result, a specific piece of music plays. I used the random.randint(1,65) function to generate random numbers, display.scroll() to introduce the game and explain the rules, and music.play() to play different tunes. I also included if, elif, and else conditions to decide which music to play, and programmed button A to start the game.
Attend our in-person Robotics & Math