Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keeping Score pt. 1 #13

Open
4 tasks
jugglinmike opened this issue Sep 25, 2014 · 0 comments
Open
4 tasks

Keeping Score pt. 1 #13

jugglinmike opened this issue Sep 25, 2014 · 0 comments
Milestone

Comments

@jugglinmike
Copy link
Collaborator

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.
@jugglinmike jugglinmike modified the milestone: Game state 1 Sep 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant