This commit is contained in:
NikolajDanger
2020-08-01 23:37:40 +02:00
parent 15f097b32e
commit e7aadcb38c

View File

@ -227,10 +227,9 @@ def fourInARowAI(channel):
possibleScores = scores.copy() 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)) possibleScores.remove(min(possibleScores))
print(possibleScores)
highest_score = random.choice(possibleScores) highest_score = random.choice(possibleScores)
indices = [i for i, x in enumerate(scores) if x == highest_score] indices = [i for i, x in enumerate(scores) if x == highest_score]