Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

checkpoint.

  • Loading branch information...
commit 8052af9ca4bea45aa32c74f7c974ca478a9a9fbd 1 parent 76cc29c
Christopher League authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 handout-2012-04.md
11 handout-2012-04.md
View
@@ -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!
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.