Coding a Game of Heads Up With Micro:Bit

Coding a Game of Heads Up With Micro:Bit

“It’s the game The New York Times called a ‘Sensation,’ and Cosmopolitan said ‘will be the best dollar you’ve spent.’ Heads Up! is the fun and hilarious game from Ellen DeGeneres that she plays on her show, and you can play with your friends!” (source)

You know the game. You’ve played it too.

Well. Why not code our own version with Micro:Bit!

That’s right. Bring your STEM skills to drama class! Break out those Micro:Bits, explore some probability and have some fun! Let’s get started!

For this activity, we will use the site. After creating a new project, go ahead and choose and “On Shake” input and gesture.

Our next step is to choose a random number. In this example, we will use five animals that students must act out. Create your logic structure as shown.

Hit that wonderful + sign to add four more conditions and go ahead and duplicate your comparison block as shown below.

And voila! Give your virtual Micro:Bit a shake to make sure it is working and download your .hex file!

To receive lessons like these right to your email, join the BREAKER community below!


Enter your email address below:

For more activities like these, grab a copy of Code Breaker and Block Breaker here!

(Visited 1,935 times, 1 visits today)

Leave a Reply

Email *