This commit is contained in:
NikolajDanger
2020-08-13 16:59:31 +02:00
parent fcff2a0823
commit b82d233faf
6 changed files with 55 additions and 58 deletions

View File

@ -1,7 +1,6 @@
import random
import math
import datetime
import os
import asyncio
import discord
@ -48,8 +47,8 @@ class Blackjack():
values.append(values[x] + 11)
values[x] += 1
else:
for x in range(len(values)):
values[x] += int(cardValue)
for value in values:
value += int(cardValue)
values.sort()
@ -169,7 +168,7 @@ class Blackjack():
hand["third hand"], allStanding, preAllStanding = self.testIfStanding(hand["third hand"],allStanding,preAllStanding,False)
if hand["split"] >= 3:
hand["fourth hand"], allStanding, preAllStanding = self.testIfStanding(hand["fourth hand"],allStanding,preAllStanding,False)
return hand, allStanding, preAllStanding