Yatzy Scoring7:42 with Kenneth Love
Now that we have a handful of dice, we should build the logic for scoring them while we play the game.
We could abstract our scoresheet further so we could reuse it in other games. We'd probably do this by creating a way to plug scoring categories into the class, probably through mixins (small classes, like our
Agile class, that don't have a lot of value outside of being used with another class).
If we were to build the entire game, we'd want some sort of
Player class, too, that would have a scoresheet associated with it. Feel free to try and build this part on your own!
You need to sign up for Treehouse in order to download course files.Sign up