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:
parent
e798485b0d
commit
c13160f0b7
|
@ -20,14 +20,14 @@ class FiveDice:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def is_three_of_a_kind(self):
|
def is_three_of_a_kind(self):
|
||||||
for value in range(6):
|
for value in range(7):
|
||||||
instances = self.faces().count(value)
|
instances = self.faces().count(value)
|
||||||
if instances >= 3:
|
if instances >= 3:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def is_four_of_a_kind(self):
|
def is_four_of_a_kind(self):
|
||||||
for value in range(6):
|
for value in range(7):
|
||||||
instances = self.faces().count(value)
|
instances = self.faces().count(value)
|
||||||
if instances >= 4:
|
if instances >= 4:
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue