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)