diff --git a/docs/courses/csintro/algorithms/activity.md b/docs/courses/csintro/algorithms/activity.md index decf02d4..29daa196 100644 --- a/docs/courses/csintro/algorithms/activity.md +++ b/docs/courses/csintro/algorithms/activity.md @@ -210,7 +210,6 @@ input.onButtonPressed(Button.B, () => { basic.clearScreen() ``` -Here it is online: [**HappySadFace**](https://makecode.microbit.org/_52r8737R8d88) diff --git a/docs/courses/csintro/conditionals/activity.md b/docs/courses/csintro/conditionals/activity.md index 3c9a4d5c..9ebfd1f0 100644 --- a/docs/courses/csintro/conditionals/activity.md +++ b/docs/courses/csintro/conditionals/activity.md @@ -19,11 +19,49 @@ Else display scissors icon. ## micro:bit * 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. ## Ideas for Mods * 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 -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()) +}) +``` \ No newline at end of file diff --git a/docs/courses/csintro/conditionals/project.md b/docs/courses/csintro/conditionals/project.md index 802c4c98..60723acd 100644 --- a/docs/courses/csintro/conditionals/project.md +++ b/docs/courses/csintro/conditionals/project.md @@ -62,8 +62,6 @@ input.onGesture(Gesture.Shake, () => { }) ``` -See the [**BattleGame**](https://makecode.microbit.org/12149-80948-84778-40832) project online. - ## Beta Testing 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") previous_roll = 0 ``` -See the [SpaceRace](https://makecode.microbit.org/65306-07188-65044-14657) game online. ## Assessment diff --git a/docs/courses/csintro/making/walkthrough.md b/docs/courses/csintro/making/walkthrough.md index 18319874..99b9b325 100644 --- a/docs/courses/csintro/making/walkthrough.md +++ b/docs/courses/csintro/making/walkthrough.md @@ -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 * **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. diff --git a/docs/courses/csintro/radio/activity.md b/docs/courses/csintro/radio/activity.md index a6f1f0d5..cf69487f 100644 --- a/docs/courses/csintro/radio/activity.md +++ b/docs/courses/csintro/radio/activity.md @@ -56,7 +56,7 @@ radio.setGroup(1) ## Mods * 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. * Change the default value in the 'play tone' block that is inside the 'on button A pressed' block to the value Low C. diff --git a/docs/courses/csintro/variables/activity.md b/docs/courses/csintro/variables/activity.md index 591c902b..db2b6590 100644 --- a/docs/courses/csintro/variables/activity.md +++ b/docs/courses/csintro/variables/activity.md @@ -199,7 +199,6 @@ PlayerAWins = 0 PlayerBWins = 0 PlayersTie = 0 ``` -See the activity online: [**Scorekeeper**](https://makecode.microbit.org/47893-98679-98470-56344) ## 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!