small fix
This commit is contained in:
parent
950ccd0684
commit
211b98f90b
@ -65,17 +65,17 @@ def update_game():
|
|||||||
|
|
||||||
# If the username that the player sent is already defined in game
|
# If the username that the player sent is already defined in game
|
||||||
elif playerStatus["username"] in game:
|
elif playerStatus["username"] in game:
|
||||||
elif abs(playerStatus["coordinate"][0]) + abs(playerStatus["coordinate"][1]) == 1:
|
if playerStatus["username"] in noMove:
|
||||||
if playerStatus["username"] in noMove:
|
if abs(playerStatus["coordinate"][0]) + abs(playerStatus["coordinate"][1]) == 1:
|
||||||
coord1 = playerStatus["coordinate"][0] + game[playerStatus["username"]][0][0]
|
coord1 = playerStatus["coordinate"][0] + game[playerStatus["username"]][0][0]
|
||||||
coord2 = playerStatus["coordinate"][1] + game[playerStatus["username"]][0][1]
|
coord2 = playerStatus["coordinate"][1] + game[playerStatus["username"]][0][1]
|
||||||
game[playerStatus["username"]][0] = [coord1, coord2]
|
game[playerStatus["username"]][0] = [coord1, coord2]
|
||||||
del noMove[noMove.index(playerStatus["username"])]
|
del noMove[noMove.index(playerStatus["username"])]
|
||||||
|
|
||||||
else:
|
else:
|
||||||
print "Hax?"
|
print "Hax?"
|
||||||
RandomMove(playerStatus["username"])
|
RandomMove(playerStatus["username"])
|
||||||
del noMove[noMove.index(playerStatus["username"])]
|
del noMove[noMove.index(playerStatus["username"])]
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user