Pages

Showing posts with label Micobit. Show all posts
Showing posts with label Micobit. Show all posts

Thursday, June 24, 2021

Rock Paper Scissors

 LI:To learn how to code the micobit to play rock paper scissors and understand how the flowchart matches the code.

Link To DLO




  1. When I shake the micobit, it will choose random number between 1 and 3.
  2. I have to make a variable called hand and set this to the random number.
  3. If the number is 1 - the micobit will show the symbol for paper.
  4. If the number is 2 - the micobit will shwo the symbol for rock.
  5. If the number is 3 - the micobit will shwo the symbol for scissors.
  6. Something I found interesting about doing this taks is being able to understand the steps of coding.