This week for tech we were tasked to code our microbit to play rock paper scissors. The code for the microbit is in the DLO ubove. We then created a Flow chart on a google drawing to show how the game works. To test if the LED worked we played a game together as a class.
1.When I shake, it will chose a random number between1 to 3.
2.I have to make a variable called and set this to the random nuber.
3.If the number is 1 - the microbit will show the symbol for Paper.
4.If the number is 2 - the microbit will show the symbol for Rock.
3.If the number is 3 - the microbit will show the symbol for Scissors.
I enjoyed this task because we got to learn what a flowchart is and how to code the microbit.
No comments:
Post a Comment