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
![](https://videos.teamtreehouse.com/stills/TH-OOPython-2017-S4V4_2-stills-0.jpg?token=6993885f_194e5cf1f0472e73562a8c0a0bd2b0aa3595719d)
- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
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 up-
gabrielalcaraz
7,694 Points1 Answer
-
William Shaylor
3,015 Points1 Answer
-
Aizah Sadiq
2,435 Points2 Answers
-
Azamat Murzabayev
2,542 Points1 Answer
-
Kohei Ashida
4,882 PointsAttributeError: 'function' object has no attribute 'items'
Posted by Kohei AshidaKohei Ashida
4,882 Points1 Answer
-
Riya Chatterjee
7,582 Points1 Answer
-
Than Win Hline
1,679 Points1 Answer
-
Than Win Hline
1,679 Points1 Answer
-
Son-Hai Nguyen
2,481 Points1 Answer
-
Seth Gorham
5,016 Points1 Answer
-
Yuyang Peng
5,665 Pointshand.ones Shouldn't 1s,2s,3s,4s,5s be YatzyHand s property?
Posted by Yuyang PengYuyang Peng
5,665 Points2 Answers
-
nakalkucing
12,964 PointsYatzy Scoring trouble. No matter what I roll I get back zero points. Help please!
Posted by nakalkucingnakalkucing
12,964 Points2 Answers
-
Simon Amz
4,606 Points2 Answers
-
PLUS
nicole lumpkin
Courses Plus Student 5,328 Points1 Answer
-
Henry Lin
11,636 Points1 Answer
-
Brandon Hoffman
3,642 Points17 Answers
View all discussions for this video
Related 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