Skip to content

Commit d0f35f8

Browse files
committed
Finished AboutDiceProject
1 parent b27faba commit d0f35f8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

python2/koans/about_dice_project.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ def values(self):
1717
def roll(self, n):
1818
# Needs implementing!
1919
# Tip: random.randint(min, max) can be used to generate random numbers
20-
pass
20+
self._values = []
21+
for r in range(0, n):
22+
self._values.append(random.randint(1, 6))
2123

2224

2325
class AboutDiceProject(Koan):

0 commit comments

Comments
 (0)