From 0063f55e4a186f5852470f280a0fd84216ae2be0 Mon Sep 17 00:00:00 2001 From: abullockuno Date: Thu, 16 Dec 2021 10:13:39 -0600 Subject: [PATCH] there was a dice[] entry left, changed to value[] --- project/yahtzee/frontend/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/yahtzee/frontend/models.py b/project/yahtzee/frontend/models.py index 2fac060d..0d012216 100644 --- a/project/yahtzee/frontend/models.py +++ b/project/yahtzee/frontend/models.py @@ -171,7 +171,7 @@ def smallStraight (self): if (count > 3): if (values[0]+1 == values[1] and values[1]+1 == values[2] and values[2]+1 == values[3]): return 30 - elif (values[1]+1 == values[2] and values[2]+1 == values[3] and values[3]+1 == dice[4]): + elif (values[1]+1 == values[2] and values[2]+1 == values[3] and values[3]+1 == values[4]): return 30 #For the Joker Rules, we need to check if the yahtzee field has already been filled elif (self.yahtzee_flag is not None and self.yahtzee == 50):