🐛 4iar says the winning move
This commit is contained in:
@ -101,7 +101,7 @@ def placePiece(channel : str,player : int,column : int):
|
||||
data["4 in a row games"][channel]["win direction"] = winDirection
|
||||
data["4 in a row games"][channel]["win coordinates"] = winCoordinates
|
||||
|
||||
message = getName(data["4 in a row games"][channel]["players"][won-1])+" won."
|
||||
message = getName(data["4 in a row games"][channel]["players"][won-1])+"placed a piece in column "+str(column+1)+" and won."
|
||||
winAmount = int(data["4 in a row games"][channel]["difficulty"])**2+5
|
||||
if data["4 in a row games"][channel]["players"][won-1] != "Gwendolyn":
|
||||
message += " Adding "+str(winAmount)+" GwendoBucks to their account."
|
||||
|
@ -155,12 +155,12 @@ def placeHex(channel : str,player : int,position : str):
|
||||
logThis("It's Gwendolyn's turn")
|
||||
gwendoTurn = True
|
||||
|
||||
# draw the board
|
||||
#fourInARowDraw.drawImage(channel)
|
||||
# hexDraw() # something something
|
||||
# Update the board
|
||||
drawHexPlacement(channel,player,position)
|
||||
|
||||
return message, True, True, gameWon, gwendoTurn
|
||||
else:
|
||||
# Invalid move, and "board" is the error message
|
||||
# Invalid move. "board" is the error message
|
||||
message = board
|
||||
return message, True, True, False, False
|
||||
else:
|
||||
|
Reference in New Issue
Block a user