Welcome to the Treehouse Community
Looking to learn something new?
Gilbert Craig2,102 Points
I'm going to use code similar to Hand.roll(2)
The challenge references 'Hand.roll(2)' which I have not identified in any video or previous challenge.
Can I be pointed to the location of this code ?
Steven Parker221,328 Points
Task 2 of this challenge is for you to write the code for the roll method. It won't be exactly like anything in the videos, but the videos have covered the concepts of method construction (and the concept of a class method, which may come in handy here).
When the instructions say "I'm going to use code similar to
Hand.roll(2) ..." they are letting you know that the method will take one argument which will be the number of
D20s that the
Hand instance you create should have in it.