🐛 4iar says the winning move

This commit is contained in:
jona605a
2020-08-06 18:52:56 +02:00
parent 899445d8b2
commit 89df136c8d
2 changed files with 5 additions and 5 deletions

View File

@ -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."

View File

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