Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJon Mirow
9,864 PointsWhat does the Hand class require?
Hi all, I've been chugging along pretty smoothly until this question. Been here a solid day, Just, I don't think I'm getting what it's really asking, or not including something it's checking for, but I've now been here a day with the output I think it wants getting
Bummer! Try again
Which is not the easiest message to debug lol. Right now I have a Hand class that you can type Hand.roll(x) on and always get x instances of class, and total works fine... but still nada lol.
Would somebody mind awfully giving me some expected inputs and outputs, or rephrase the question so I can work out what it's really asking for?
It's task 2:
Now update Hand in hands.py. I'm going to use code similar to Hand.roll(2) and I want to get back an instance of Hand with two D20s rolled in it. I should then be able to call .total on the instance to get the total of the two dice.
Thanks in advance!
Steven Parker
231,248 PointsSteven Parker
231,248 PointsTo facilitate analysis of the issue, please show your code here (be sure to format it using Markdown).