Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
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!
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up