pxt-calliope/olddocs/js/lessons/minesweeper/quiz.md

35 lines
945 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# minesweeper quiz
2016-04-02 01:22:47 +02:00
make a game to test your memory for placing a LED mine then finding the hidden LED mine.
2016-03-26 00:47:20 +01:00
## Name
## Directions
2016-04-13 17:27:45 +02:00
Use this activity document to guide your work in the [minesweeper tutorial](/lessons/minesweeper/tutorial).
2016-03-26 00:47:20 +01:00
Answer the questions while completing the tutorial. Pay attention to the dialogues!
## 1. Write the code that randomly generates a number between 0 and 4 and stores that value in a global variable called 'mine x'.
<br />
## 2. Write the code to plot the point with coordinates of (select x, select y) as shown. Your code should apply the concept of `led->plot ( , )`
![](/static/mb/lessons/blink-1.png)
<br />
## 3. Write the code to plot the point with coordinates of (select x, select y) as shown. Your code should apply the concept of `led->plot ( , )`
![](/static/mb/lessons/blink-0.png)
<br />
## 4. How do you check if a dot is one away from given x and y coordinates?
<br />
<br />