Programming interactivity with the BBC Microbit

For this assignment I used:

Computer running makecode website: https://makecode.microbit.org

I used the virtual blocks to make the code as it was visual and therefore easier to comprehend.

  • I first used the Basic tool to make the virtual microbit show my name on start, and then show LED giraffe icon
  • You can either use ‘show leds’ to create own icon or choose from ‘show icon’ list which I found easier for this particular task.

  • I then created a simple game using variables:
  • I named my variables with suitable names, i.e ‘buttonAcounter’ so as not to get confused
  • I also used logic tool to create ‘conditionals’ for my game
  • I then chose icons of ‘heart’ and ‘sad face’ to represent win and lose.

 

 

Problems With Game:

  • Before I had it 3×3 And the wrong variable in the input box

    Solution

  • I then realised I had to change variable to change the increments. 

    So that, if I make 0 equal to 3 then the game is to press button 3 times and if answer is 9 then its correct. 

Strategies for success:

Print Friendly, PDF & Email

Jai Ellis-Crook

Leave a Reply

Your email address will not be published. Required fields are marked *