Essential Questions: How can I use the for loop and while loop to create the game Tenzi?
Mastery Objectives:
SWBAT create nested loops.
SWBAT create conditional statements.
Do Now:
Create a let variable called changeMe and set it equal to the boolean true.
Checkpoint 2 Passe
On the line after changeMe is declared, set the value of changeMe to be the boolean false.
To check if changeMe was reassigned, log the value saved to changeMe to the console.
Directions: Open up this scratch game called Tenzi. As a class, we are going to try to play. The game will give you a number, that is the number you have to roll on your dice. If you see a die (singular for dice) with your number, click on it to make it disappear from the screen. When all of your dice are gone, you will. But since we are playing as a class, the first person to get rid of your dice wins. https://scratch.mit.edu/projects/132657655/
Project: The code below is the code for the Tenzi project. Type the code in and make it better. Add images to your code.
Resources:
Nearpod on For Loops for JavaScript https://app.nearpod.com/?pin=CGFST
Ticket-to-Leave: In repl.it (upload to Do Now assignment) Create a for loop that prints out the following:
1
2
3
4
5