diff --git a/funcs/games/blackjack.py b/funcs/games/blackjack.py index a61d01c..601ccea 100644 --- a/funcs/games/blackjack.py +++ b/funcs/games/blackjack.py @@ -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 diff --git a/funcs/miscFuncs.py b/funcs/miscFuncs.py index 0a40a41..670b766 100644 --- a/funcs/miscFuncs.py +++ b/funcs/miscFuncs.py @@ -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")