Essential Question: How can I use the random function to create a dice game?
Mastery Objectives:
SWBAT create nested loops in JavaScript.
SWBAT create nested conditional statements in JavaScript.
SWBAT add images to a web page using JavaScript.
Do Now: Write a JavaScript program to check two given numbers and return true if one of the number is 50 or if their sum is 50.
Resources: https://youtu.be/NMtlQxJeWvc?t=627
https://www.youtube.com/watch?v=7O5lEfhbB7g - Basics of the game
Directions: Using the code from Tenzi and the code from Beetle to recreate the game, Zombie Dice.
Requirements: Work in teams of 2 or less. Each person will turn in pseudocode. Each group will turn in a screencastify of your code working.
Dice Breakdown:
6 Green -> 1 shotgun 4 Yellow -> 2 shotguns 3 red -> 3 shotguns
3 brains 2 brains 1 brain
2 footprints 2 footprints 2 footprints
How to add images: https://moonbooks.org/Articles/How-to-add-an-image-in-a-HTML-page-using-javascript-/