Category Archives: robotics

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

Microbit Firia Lab Concepts

  1. Unit 1
    1. Datatypes (scroll vs show())
  2. Unit 2
    1. Variables (delay= 1000)
    2. Roman Translator Standalone Assign
  3. Unit 3
    1. while loop
  4. Unit 4
    1. break statement
  5. Unit 5
    1. Intro to lists
  6. Unit 6
    1. Lists
    2. len function
    3. random index from list (Answer Bot)
  7. Unit 7
    1. Probability Lab
  8. Unit 8
    1. def() using functions
  9. Unit 9