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

Replaying #20

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

Replaying #20

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

Comments

@jugglinmike
Copy link
Collaborator

This game is getting to be so much fun that people want to play again as soon
as it's over. Sure, they could refresh the page. But we can make it even easier
with a "replay" button in the end game report.

  • director.js
    • Update the markup in the endgame report to include a <button>
      element.
    • After setting the innerHTML for the endgame report, grab the new
      <button> element and add a "click" event listener that calls the
      countDown method.

That wasn't so bad, was it? Actually, there's another bug now. Pay close
attention to the score that gets reported when you play more than once using
the new "replay" button. Can you tell what's wrong? Can you fix it?

@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