Monthly Archives: February 2020

2 Player Button Presser Game

Overview: Create a 2 player game.  Give the players 5 seconds to press button_a/button_b.  After the 5 seconds are over state who the winner or is if there’s a tie.

One player will press button A and the other button B.

Provide instructions and a count down and then give the players 5 seconds to press as many times as they can. Example of a final program might look like .


2-player-presser_game_v1.gif

(Thanks gifyu.com for letting me embed huge gif’s!!)

 

Note: we will be enhancing this game in the future when we know how to use loops so make sure you give this file a good name when you save it.

How to Create Custom Image

The Python Microbit reference shows how to make a custom boat image, which you can see pictured at the bottom.

Here is the code:

 

microbit-boat-image