move lessons out of web site
will move select lessons back to "educators" section
This commit is contained in:
22
olddocs/lessons/lucky-7/activity.md
Normal file
22
olddocs/lessons/lucky-7/activity.md
Normal file
@ -0,0 +1,22 @@
|
||||
# lucky 7 blocks activity
|
||||
|
||||
Show a number on the LED screen.
|
||||
|
||||
### ~avatar avatar
|
||||
|
||||
Let's learn how to show the lucky number 7 on the LED screen.
|
||||
|
||||
### ~
|
||||
|
||||
We will use `show number` to display a number on the screen. The argument (`7`) is the number to display.
|
||||
|
||||
```blocks
|
||||
basic.showNumber(7)
|
||||
```
|
||||
|
||||
### ~avatar boothing
|
||||
|
||||
Excellent, you're ready to continue with the [challenges](/lessons/lucky-7/challenges)!
|
||||
|
||||
### ~
|
||||
|
37
olddocs/lessons/lucky-7/challenges.md
Normal file
37
olddocs/lessons/lucky-7/challenges.md
Normal file
@ -0,0 +1,37 @@
|
||||
# lucky 7 blocks challenges
|
||||
|
||||
Coding challenges for lucky 7.
|
||||
|
||||
## Before we get started
|
||||
|
||||
Complete the [lucky 7 activity](/lessons/lucky-7/activity) and your code will look like this:
|
||||
|
||||
```blocks
|
||||
basic.showNumber(7)
|
||||
```
|
||||
|
||||
### Challenge 1
|
||||
|
||||
But we also should pause before showing another number. Let's add a pause of 500 milliseconds.
|
||||
|
||||
```blocks
|
||||
basic.showNumber(7)
|
||||
basic.pause(500)
|
||||
```
|
||||
|
||||
### Challenge 2
|
||||
|
||||
What about other multiples of 7? Let's display the next multiple of 7 on the screen!
|
||||
|
||||
```blocks
|
||||
basic.showNumber(7)
|
||||
basic.pause(500)
|
||||
basic.showNumber(14)
|
||||
```
|
||||
|
||||
* Run the code to see if it works as expected.
|
||||
|
||||
### Challenge 3
|
||||
|
||||
Keep displaying multiples of 7 such as 21 and 28...
|
||||
|
35
olddocs/lessons/lucky-7/quiz-answers.md
Normal file
35
olddocs/lessons/lucky-7/quiz-answers.md
Normal file
@ -0,0 +1,35 @@
|
||||
# lucky 7 blocks quiz answers
|
||||
|
||||
Show a number on the micro:bit.
|
||||
|
||||
This is the answer key for the [lucky 7 quiz](/lessons/lucky-7/quiz).
|
||||
|
||||
## 1. Describe what `show number` does?
|
||||
|
||||
Answers may vary. This will show a number on the LED screen, one digit at a time (scrolling from left to right).
|
||||
|
||||
## 2. Draw every LED that is ON after running this code
|
||||
|
||||
```blocks
|
||||
basic.showNumber(7)
|
||||
```
|
||||
|
||||
|
||||

|
||||
|
||||
## 3. Draw every LED that is ON after running this code
|
||||
|
||||
|
||||
```blocks
|
||||
basic.showNumber(21)
|
||||
```
|
||||
|
||||

|
||||
|
||||
## 4. Write the code that will be used to display the number 3 on the micro:bit.
|
||||
|
||||

|
||||
|
||||
```blocks
|
||||
basic.showNumber(3)
|
||||
```
|
40
olddocs/lessons/lucky-7/quiz.md
Normal file
40
olddocs/lessons/lucky-7/quiz.md
Normal file
@ -0,0 +1,40 @@
|
||||
# lucky 7 blocks quiz
|
||||
|
||||
Show a number on the micro:bit
|
||||
|
||||
## Name
|
||||
|
||||
## Directions
|
||||
|
||||
Use this activity document to guide your work in the [lucky 7 activity](/lessons/lucky-7/activity).
|
||||
|
||||
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
||||
|
||||
## 1. Describe what "show number" does?
|
||||
|
||||
|
||||
|
||||
## 2. Draw every LED that is ON after running this code
|
||||
|
||||
```blocks
|
||||
basic.showNumber(7)
|
||||
```
|
||||
|
||||

|
||||
|
||||
## 3. Draw every LED that is ON after running this code
|
||||
|
||||
```blocks
|
||||
basic.showNumber(21)
|
||||
```
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
## 4. Write the code that will be used to display the number 3 on the micro:bit.
|
||||
|
||||

|
||||
|
||||
|
31
olddocs/lessons/lucky-7/tutorial.md
Normal file
31
olddocs/lessons/lucky-7/tutorial.md
Normal file
@ -0,0 +1,31 @@
|
||||
# lucky 7 blocks challenges
|
||||
|
||||
Coding challenges for lucky 7.
|
||||
|
||||
###~ Avatar
|
||||
|
||||
### @video td/videos/lucky-7-1-2
|
||||
|
||||
### Rebuild the game!
|
||||
|
||||
The blocks have been shuffled! Put them back together so that…
|
||||
* The blocks should be multiples of 7 and a pause between the numbers
|
||||
|
||||
```shuffle
|
||||
basic.showNumber(7)
|
||||
basic.pause(500)
|
||||
basic.showNumber(14)
|
||||
```
|
||||
|
||||
### Hints and tips
|
||||
|
||||
Cut out these documentation cards to help you!
|
||||
|
||||
```cards
|
||||
basic.showNumber()
|
||||
basic.pause()
|
||||
```
|
||||
|
||||
* Run the code to see if it works as expected.
|
||||
|
||||
|
Reference in New Issue
Block a user