From 2717ea20c1780aaa39264f07b9e192030bc991fc Mon Sep 17 00:00:00 2001 From: NikolajDanger Date: Thu, 30 Jul 2020 12:55:48 +0200 Subject: [PATCH] :bug: --- funcs/games/fourInARow.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/funcs/games/fourInARow.py b/funcs/games/fourInARow.py index b3a46a2..78e3d36 100644 --- a/funcs/games/fourInARow.py +++ b/funcs/games/fourInARow.py @@ -18,9 +18,9 @@ def fourInARowStart(channel): draw4InARow.drawImage(channel) - return "Started game", True + return "Started game", True, False else: - return "There's already a 4 in a row game going on in this channel", False + return "There's already a 4 in a row game going on in this channel", False, False # Places a piece at the lowest available point in a specific column def placePiece(channel : str,player : int,column : int): @@ -45,11 +45,11 @@ def placePiece(channel : str,player : int,column : int): json.dump(data,f,indent=4) draw4InARow.drawImage(channel) - return "Placed the piece", True + return "Placed the piece", True, True else: - return "There isn't any room in that column", True + return "There isn't any room in that column", True, True else: - return "There's no game in this channel", False + return "There's no game in this channel", False, False # Parses command @@ -59,8 +59,8 @@ def parseFourInARow(command, channel, user): elif command.startswith(" place"): commands = command.split(" ") try: - return placePiece(channel,int(commands[2]),int(commands[3])-1), True + return placePiece(channel,int(commands[2]),int(commands[3])-1) except: - return "I didn't quite get that", False, True + return "I didn't quite get that", False, False else: - return "I didn't get that", False, True \ No newline at end of file + return "I didn't get that", False, False \ No newline at end of file