🚧 Started on 4 in a row game

This commit is contained in:
NikolajDanger
2020-07-28 22:10:23 +02:00
parent 44a6ef65ca
commit 94c6289cc1
10 changed files with 148 additions and 10 deletions

View File

@ -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):