This commit is contained in:
Nikolaj Danger
2020-07-31 17:08:07 +02:00
parent b0d791cc8b
commit 61c58610d6
3 changed files with 19 additions and 14 deletions

View File

@ -62,7 +62,7 @@ def placePiece(channel : str,player : int,column : int):
message = data["4 in a row games"][channel]["players"][won-1]+" won. Adding 20 GwendoBucks to their account."
else:
gameWon = False
message = data["4 in a row games"][channel]["players"][player-1]+" placed a piece in column "+str(column)+". It's now "+data["4 in a row games"][channel]["players"][turn]+"'s turn."
message = data["4 in a row games"][channel]["players"][player-1]+" placed a piece in column "+str(column+1)+". It's now "+data["4 in a row games"][channel]["players"][turn]+"'s turn."
with open("resources/games/games.json", "w") as f:
json.dump(data,f,indent=4)
@ -80,7 +80,7 @@ def parseFourInARow(command, channel, user):
print(command)
if command == "" or command == " ":
return "I didn't get that. \"Use !fourinarow start\" to start a game.", False, False, False
return "I didn't get that. \"Use !fourinarow start [opponent]\" to start a game.", False, False, False
elif command.startswith(" start "):