Browse files

checkpoint.

  • Loading branch information...
1 parent 76cc29c commit 8052af9ca4bea45aa32c74f7c974ca478a9a9fbd @league committed Apr 16, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 handout-2012-04.md
View
11 handout-2012-04.md
@@ -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.