Pages

Friday 25 June 2021

Rock, Paper, Scissors

 LI: to learn how to code the microbit to play rock, paper, scissors and to understand the code through a flow chart.


This week for our tech session we learnt to code rock, paper, scissors into our Kittenbots. This code works by the shake of the Kittenbot, initiating the code itself. Once Kittenbot has been shaken the code will send a signal to pick a random number out of 1 to 3, once the bot has picked a number this number will be used as a symbol for the LED lights (if 1 is the number; it will show scissors). Above there is a flowchart showing the simplistic way of explaining this code. 

2 comments:

  1. Hello Lukah,
    I hae seen your understanding of the code itself through a flow chart. This code looks really fun and it is simple to use. Have you ever tried making your own code using mbot? Maybe next time add some paragraphs.

    Great Job!

    ReplyDelete
  2. Hi Lukah
    I really like your DLO, I can slearly see your explenation of how rock paper scissors works. I have also done this and it was really fun. Did you play anyone using your kettenbot?
    Great job.

    ReplyDelete