Showing posts with label tech. Show all posts
Showing posts with label tech. Show all posts
Friday, August 19, 2022
Friday, June 3, 2022
Playing with the Microbits
Learning Intention: To learn how to code with simple blocks and to transfer the code from the Chromebook to the Microbit.
First of all, we coded the microbit to show a flashing heart.
We put two show led blocks inside a forever block. The microbit shows the leds that are lit on the block. They will flash between one block and the other forever as both blocks are inside a forever block.
We then coded the buttons on the microbit to do different actions according to which button has been pressed.
When we use the blocks for coding the buttons, they have a drop down to choose which button. This is called a variable.
Friday, June 25, 2021
Rock Paper Scissors
Learning Intention
To learn how to code the microbit to play rock paper scissors and understand how the flowchart matches the code.
- When I shake the microbit, it will choose a random number between 1 and 3
- I have to make a variable called hand and set this to the random number
- If the number is 1 - the microbit will show the symbol for paper
- If the number is 2 - the microbit will show the symbol for rock
- If the number is 3 - the microbit will show the symbol for scissors
Subscribe to:
Posts (Atom)
