This commit is contained in:
NikolajDanger
2020-07-29 14:16:00 +02:00
parent 1104d2bfa4
commit 7164faae15
2 changed files with 6 additions and 11 deletions

View File

@ -21,6 +21,12 @@ def blackjackShuffle(decks):
with open("resources/games/blackjackCards.txt","w") as f:
f.write(data)
# Creates hilo.txt
logThis("creating hilo.txt.")
data = "0"
with open("resources/games/hilo.txt","w") as f:
f.write(data)
return
# Calculates the value of a blackjack hand

View File

@ -165,17 +165,6 @@ def makeFiles():
finally:
f.close()
# Creates blackjackCards.txt if it doesn't exist
try:
f = open("resources/games/hilo.txt","r")
except:
logThis("hilo.txt didn't exist. Making it now.")
data = ""
with open("resources/games/hilo.txt","w") as f:
f.write(data)
finally:
f.close()
# Creates destinyPoints.txt if it doesn't exist
try:
f = open("resources/destinyPoints.txt","r")