🐛
This commit is contained in:
@@ -21,6 +21,12 @@ def blackjackShuffle(decks):
|
|||||||
with open("resources/games/blackjackCards.txt","w") as f:
|
with open("resources/games/blackjackCards.txt","w") as f:
|
||||||
f.write(data)
|
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
|
return
|
||||||
|
|
||||||
# Calculates the value of a blackjack hand
|
# Calculates the value of a blackjack hand
|
||||||
|
|||||||
@@ -165,17 +165,6 @@ def makeFiles():
|
|||||||
finally:
|
finally:
|
||||||
f.close()
|
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
|
# Creates destinyPoints.txt if it doesn't exist
|
||||||
try:
|
try:
|
||||||
f = open("resources/destinyPoints.txt","r")
|
f = open("resources/destinyPoints.txt","r")
|
||||||
|
|||||||
Reference in New Issue
Block a user