generated from mwc/lab_dice
update b/w checkpont 1 and 2
fixed range(6) to range(7) in dice_stats.py
This commit is contained in:
@@ -20,14 +20,14 @@ class FiveDice:
|
||||
return True
|
||||
|
||||
def is_three_of_a_kind(self):
|
||||
for value in range(6):
|
||||
for value in range(7):
|
||||
instances = self.faces().count(value)
|
||||
if instances >= 3:
|
||||
return True
|
||||
return False
|
||||
|
||||
def is_four_of_a_kind(self):
|
||||
for value in range(6):
|
||||
for value in range(7):
|
||||
instances = self.faces().count(value)
|
||||
if instances >= 4:
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user