Skip to content

Commit

Permalink
checkpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
league committed Apr 17, 2012
1 parent 76cc29c commit 8052af9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions handout-2012-04.md
Expand Up @@ -450,3 +450,14 @@ add a listener that will update the total score:

[Code up to here is available as git commit `043b6b47`.]

# Generalize

Try to write some other scoring rules, such as three of a kind or full
house. Then, try to factor out what they have in common as a super
class — management of the button, `ourScore`, etc. Then, in
`rollDice`, call `computeScore` on *all* the scoring rules, not just
`threes`.

Enjoy!


0 comments on commit 8052af9

Please sign in to comment.