From 00fbb2b06d1c6216ace9027d815f3d675262d47a Mon Sep 17 00:00:00 2001 From: NikolajDanger Date: Sat, 1 Aug 2020 23:46:16 +0200 Subject: [PATCH] :bug: --- funcs/games/fourInARow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/funcs/games/fourInARow.py b/funcs/games/fourInARow.py index 9cf7110..95ff498 100644 --- a/funcs/games/fourInARow.py +++ b/funcs/games/fourInARow.py @@ -227,7 +227,7 @@ def fourInARowAI(channel): possibleScores = scores.copy() - while (min(possibleScores) <= (max(possibleScores) - max(possibleScores)/10)) or len(possibleScores) == 1: + while (min(possibleScores) <= (max(possibleScores) - max(possibleScores)/10)) and len(possibleScores) != 1: possibleScores.remove(min(possibleScores)) highest_score = random.choice(possibleScores)