minesweeper quiz
make a game to test your memory for placing a LED mine then finding the hidden LED mine.
Name
Directions
Use this activity document to guide your work in the minesweeper tutorial.
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'.
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 ( , )
![](/gitea/c_meyer/pxt-calliope/media/commit/682ae92a0871e746c17fb0ce510f926bdf303f6c/olddocs/js/lessons/minesweeper/static/mb/lessons/blink-1.png)
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 ( , )
![](/gitea/c_meyer/pxt-calliope/media/commit/682ae92a0871e746c17fb0ce510f926bdf303f6c/olddocs/js/lessons/minesweeper/static/mb/lessons/blink-0.png)
4. How do you check if a dot is one away from given x and y coordinates?