🚧 Started on 4 in a row game
This commit is contained in:
@ -143,7 +143,7 @@ def makeFiles():
|
||||
f = open("resources/games/games.json","r")
|
||||
except:
|
||||
logThis("games.json didn't exist. Making it now.")
|
||||
data = {"trivia questions":{},"blackjack games":{},"users":{}}
|
||||
data = {"trivia questions":{},"blackjack games":{},"4 in a row games": {},"users":{}}
|
||||
with open("resources/games/games.json","w") as f:
|
||||
json.dump(data,f,indent = 4)
|
||||
finally:
|
||||
@ -183,8 +183,8 @@ def makeFiles():
|
||||
finally:
|
||||
f.close()
|
||||
|
||||
if os.path.isdir("resources/games/tables") == False:
|
||||
os.makedirs("resources/games/tables")
|
||||
if os.path.isdir("resources/games/blackjackTables") == False:
|
||||
os.makedirs("resources/games/blackjackTables")
|
||||
logThis("The tables directory didn't exist")
|
||||
|
||||
def replaceMultiple(mainString, toBeReplaces, newString):
|
||||
|
Reference in New Issue
Block a user