Remove links to online projects from lesson pages. (#437)
This commit is contained in:
parent
5cd8bad144
commit
edaf2b0403
@ -210,7 +210,6 @@ input.onButtonPressed(Button.B, () => {
|
|||||||
basic.clearScreen()
|
basic.clearScreen()
|
||||||
```
|
```
|
||||||
|
|
||||||
Here it is online: [**HappySadFace**](https://makecode.microbit.org/_52r8737R8d88)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,11 +19,49 @@ Else display scissors icon.
|
|||||||
|
|
||||||
## micro:bit
|
## micro:bit
|
||||||
* Working from the specifications, have students work in pairs to try to code a Rock Paper Scissors game on their own.
|
* Working from the specifications, have students work in pairs to try to code a Rock Paper Scissors game on their own.
|
||||||
* If students get stuck, there is a tutorial at https://pxt.microbit.org/projects/rock-paper-scissors (steps 1 through 4), that leads students step-by-step through the process of coding a working rock paper scissor game for their micro:bit.
|
* If students get stuck, there is a tutorial at [rock, paper, scissors](/projects/rock-paper-scissors) (steps 1 through 4), that leads students step-by-step through the process of coding a working rock paper scissor game for their micro:bit.
|
||||||
* Let them play the game against their program.
|
* Let them play the game against their program.
|
||||||
|
|
||||||
## Ideas for Mods
|
## Ideas for Mods
|
||||||
* Add a way to keep score: Steps 5 through 7 in the tutorial
|
* Add a way to keep score: Steps 5 through 7 in the tutorial
|
||||||
* Mod the game to use different images or to add more options like ‘Rock Paper Scissors Lizard Spock’, Step 8 in the tutorial
|
* Mod the game to use different images or to add more options like ‘Rock Paper Scissors Lizard Spock’, Step 8 in the tutorial
|
||||||
|
|
||||||
See the activity online: [**Rock, paper, scissors**](https://makecode.microbit.org/_A6Xbepc3w4uu)
|
Here's an example mod:
|
||||||
|
|
||||||
|
```blocks
|
||||||
|
let hand = 0
|
||||||
|
input.onGesture(Gesture.Shake, () => {
|
||||||
|
hand = Math.random(3)
|
||||||
|
if (hand == 0) {
|
||||||
|
basic.showLeds(`
|
||||||
|
# # # # #
|
||||||
|
# . . . #
|
||||||
|
# . . . #
|
||||||
|
# . . . #
|
||||||
|
# # # # #
|
||||||
|
`)
|
||||||
|
} else if (hand == 1) {
|
||||||
|
basic.showLeds(`
|
||||||
|
. . . . .
|
||||||
|
. # # # .
|
||||||
|
. # # # .
|
||||||
|
. # # # .
|
||||||
|
. . . . .
|
||||||
|
`)
|
||||||
|
} else {
|
||||||
|
basic.showLeds(`
|
||||||
|
# # . . #
|
||||||
|
# # . # .
|
||||||
|
. . # . .
|
||||||
|
# # . # .
|
||||||
|
# # . . #
|
||||||
|
`)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
input.onButtonPressed(Button.A, () => {
|
||||||
|
game.addScore(1)
|
||||||
|
basic.pause(100)
|
||||||
|
basic.showString("Wins:")
|
||||||
|
basic.showNumber(game.score())
|
||||||
|
})
|
||||||
|
```
|
@ -62,8 +62,6 @@ input.onGesture(Gesture.Shake, () => {
|
|||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [**BattleGame**](https://makecode.microbit.org/12149-80948-84778-40832) project online.
|
|
||||||
|
|
||||||
## Beta Testing
|
## Beta Testing
|
||||||
|
|
||||||
Give students a chance to play each other’s games. The following process works well:
|
Give students a chance to play each other’s games. The following process works well:
|
||||||
@ -145,7 +143,6 @@ input.onButtonPressed(Button.A, () => {
|
|||||||
basic.showString("SPACE RACE")
|
basic.showString("SPACE RACE")
|
||||||
previous_roll = 0
|
previous_roll = 0
|
||||||
```
|
```
|
||||||
See the [SpaceRace](https://makecode.microbit.org/65306-07188-65044-14657) game online.
|
|
||||||
|
|
||||||
## Assessment
|
## Assessment
|
||||||
|
|
||||||
|
@ -32,9 +32,6 @@ basic.forever(() => {
|
|||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [**MicroPet**](https://makecode.microbit.org/_38yJ1PAkuKPV) project online.
|
|
||||||
https://makecode.microbit.org/_38yJ1PAkuKPV
|
|
||||||
|
|
||||||
## Tour of Microsoft MakeCode
|
## Tour of Microsoft MakeCode
|
||||||
|
|
||||||
* **Simulator** - on the left side of the screen, you will see a virtual micro:bit that will show what your program will look like running on a micro:bit. This is helpful for debugging, and instant feedback on program execution.
|
* **Simulator** - on the left side of the screen, you will see a virtual micro:bit that will show what your program will look like running on a micro:bit. This is helpful for debugging, and instant feedback on program execution.
|
||||||
|
@ -56,7 +56,7 @@ radio.setGroup(1)
|
|||||||
|
|
||||||
## Mods
|
## Mods
|
||||||
* Add a 'show leds' block to the 'on start' block. We created an image of the initials MP.
|
* Add a 'show leds' block to the 'on start' block. We created an image of the initials MP.
|
||||||
* From the Music Toolbox drawer, drag 2 'play tone' blocks to the coding workspace. See https://makecode.microbit.org/projects/hack-your-headphones for how to connect a speaker or headphones to the micro:bit.
|
* From the Music Toolbox drawer, drag 2 'play tone' blocks to the coding workspace. See [hack your headphones](/projects/hack-your-headphones) for how to connect a speaker or headphones to the micro:bit.
|
||||||
* Drag one of the 'play tone' blocks to the 'on button A pressed' block, and the other one to the 'on button B pressed' block.
|
* Drag one of the 'play tone' blocks to the 'on button A pressed' block, and the other one to the 'on button B pressed' block.
|
||||||
* Change the default value in the 'play tone' block that is inside the 'on button A pressed' block to the value Low C.
|
* Change the default value in the 'play tone' block that is inside the 'on button A pressed' block to the value Low C.
|
||||||
|
|
||||||
|
@ -199,7 +199,6 @@ PlayerAWins = 0
|
|||||||
PlayerBWins = 0
|
PlayerBWins = 0
|
||||||
PlayersTie = 0
|
PlayersTie = 0
|
||||||
```
|
```
|
||||||
See the activity online: [**Scorekeeper**](https://makecode.microbit.org/47893-98679-98470-56344)
|
|
||||||
|
|
||||||
## Try it out!
|
## Try it out!
|
||||||
Download the Scorekeeper program to the micro:bit, and have the students play one last round of Rock Paper Scissors using their micro:bits to act as the Scorekeeper!
|
Download the Scorekeeper program to the micro:bit, and have the students play one last round of Rock Paper Scissors using their micro:bits to act as the Scorekeeper!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user