From 174812f78c14c33e815205de7924073cbf537d25 Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 2 Jan 2020 23:49:30 +0000 Subject: [PATCH] Fix mancala move handler packet serialisation --- houdini/handlers/games/mancala.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/houdini/handlers/games/mancala.py b/houdini/handlers/games/mancala.py index fd14594..2190dc3 100644 --- a/houdini/handlers/games/mancala.py +++ b/houdini/handlers/games/mancala.py @@ -25,14 +25,13 @@ async def handle_join_game(p): @handlers.handler(XTPacket('zm', ext='z')) @table_handler(MancalaLogic) -async def handle_send_move(p, move: int): +async def handle_send_move(p, hollow: int): try: seat_id = p.table.get_seat_id(p) is_player = seat_id < 2 game_ready = len(p.table.penguins) > 1 if is_player and game_ready: - hollow, = map(int, move) current_player = p.table.penguins[p.table.logic.current_player - 1] if current_player != p: