📝 Renaming
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
from . import draw4InARow
|
from . import 4InARowDraw
|
||||||
from funcs import logThis
|
from funcs import logThis
|
||||||
|
|
||||||
# Starts the game
|
# Starts the game
|
||||||
@ -18,7 +18,7 @@ def fourInARowStart(channel, user, opponent):
|
|||||||
with open("resources/games/games.json", "w") as f:
|
with open("resources/games/games.json", "w") as f:
|
||||||
json.dump(data,f,indent=4)
|
json.dump(data,f,indent=4)
|
||||||
|
|
||||||
draw4InARow.drawImage(channel)
|
4InARowDraw.drawImage(channel)
|
||||||
|
|
||||||
return "Started game. It's "+user+"'s turn", True, False, False
|
return "Started game. It's "+user+"'s turn", True, False, False
|
||||||
else:
|
else:
|
||||||
@ -64,7 +64,7 @@ def placePiece(channel : str,player : int,column : int):
|
|||||||
with open("resources/games/games.json", "w") as f:
|
with open("resources/games/games.json", "w") as f:
|
||||||
json.dump(data,f,indent=4)
|
json.dump(data,f,indent=4)
|
||||||
|
|
||||||
draw4InARow.drawImage(channel)
|
4InARowDraw.drawImage(channel)
|
||||||
return message, True, True, gameWon
|
return message, True, True, gameWon
|
||||||
else:
|
else:
|
||||||
return "There isn't any room in that column", True, True, False
|
return "There isn't any room in that column", True, True, False
|
||||||
|
Reference in New Issue
Block a user