src/quagen/worker.py
def handle_player_movement(game, events):
    """
    Adds any moves made by human players to the game

    Args:
        game (Game): Current game to add moves
        event (list): List of game events which make contain player moves
    """
    for event in events:
        if event["type"] == "move":
            game.add_player(event["player_id"])
            game.add_move(event["player_id"], event["x"], event["y"])

    Adds any moves made by human players to the game

    Args:
        game (Game): Current game to add moves
        event (list): List of game events which make contain player moves
    
Adds any moves made by human players to the game
Adds any moves made by human players to the game
def handle_player_movement(game, events):
    for event in events:
        if event["type"] == "move":
            game.add_player(event["player_id"])
            game.add_move(event["player_id"], event["x"], event["y"])
def handle_player_movement ( game , events ) : for event in events : if event [ "type" ] == "move" : game . add_player ( event [ "player_id" ] ) game . add_move ( event [ "player_id" ] , event [ "x" ] , event [ "y" ] )
Adds any moves made by human players to the game
Adds any moves made by human players to the game
"""
    Adds any moves made by human players to the game

    Args:
        game (Game): Current game to add moves
        event (list): List of game events which make contain player moves
    """
game
Current game to add moves
Current game to add moves
events
event
List of game events which make contain player moves
List of game events which make contain player moves