You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Directory should keep track of successful whacs so that it can report a
score when the game is over. We also want to keep track of moles that
"escape"--the ones that the Director hides automatically because they weren't
clicked in time.
director.js
Define a whacCount instance variable on the Director in the
constructor (initialize it to 0).
Increment (i.e. increase by 1) the whacCount variable whenever the
player successfully whacs a mole.
Define an escapeCount instance variable on the Director in the
constructor (initialize it to 0).
Incremenet the escapeCount variable whenever the Director has to
automatically hide one of its moles.
The text was updated successfully, but these errors were encountered:
The Directory should keep track of successful whacs so that it can report a
score when the game is over. We also want to keep track of moles that
"escape"--the ones that the
Director
hides automatically because they weren'tclicked in time.
director.js
whacCount
instance variable on theDirector
in theconstructor (initialize it to 0).
whacCount
variable whenever theplayer successfully whacs a mole.
escapeCount
instance variable on theDirector
in theconstructor (initialize it to 0).
escapeCount
variable whenever theDirector
has toautomatically hide one of its
mole
s.The text was updated successfully, but these errors were encountered: