🐛
This commit is contained in:
@ -227,10 +227,9 @@ def fourInARowAI(channel):
|
||||
|
||||
possibleScores = scores.copy()
|
||||
|
||||
while min(possibleScores) <= (max(possibleScores) - max(possibleScores)/10):
|
||||
while (min(possibleScores) <= (max(possibleScores) - max(possibleScores)/10)) or len(possibleScores) == 1:
|
||||
possibleScores.remove(min(possibleScores))
|
||||
|
||||
print(possibleScores)
|
||||
highest_score = random.choice(possibleScores)
|
||||
|
||||
indices = [i for i, x in enumerate(scores) if x == highest_score]
|
||||
|
Reference in New Issue
Block a user