Goal: Whack a Mole A random mole pops up its head very briefly. To whack a mole, the player uses the mouse to click on the mole. The player wins if 5 moles are clicked, but he/she is allowed a maximum of 20 clicks. ---------------------------------------------- Storybook: 0. [provided] Whack a Mole world from Textbook worlds - World a list of moles as a property - moles 1. World.myFirstMethod (main story) while the player hasn't won or exhausted 20 clicks pops up and down a random mole declare the player won or lost 2. World.popUpAndDown method someMole moves up and down quickly 3. World.scoring method associated with a mouse click event update clicks update score ----------------------------------------------- Storybook: 0. [provided] Whack a Mole world from Textbook worlds - World a list of moles as a property - moles - World: two variables to keep track of NumberOfClicks and Score (not in a method) 1. World.myFirstMethod (main story) while Score is less than 5 and NumberOfClicks is less than 20 drag World.popUpAndDown , drag list to get random mole Declare the player won or lost 2. World.popUpAndDown method, someMole as parameter someMole moves up and down quickly 3. World.scoring method, clickedObject as **parameter** associated with a mouse click event update NumberOfClicks for each mole on the list of moles if clickedObject is a mole update Score ---- Extra ---- 4. update the playerScore bar/indicator yellow bar increases in height with the score and reaches the top when the score is 5.