src/quagen/api.py
def game_move(game_id, x, y):
    """
    Makes a move for a Quagen game

    Args:
        game_id (str): Id of game to take a move
        x (int): x location of move
        y (int): y location of move

    Returns:
        (Response) JSON coordinates of move
    """
    game = queries.get_game(game_id)
    if game and "player_id" in session.keys():
        player_id = session["player_id"]

        # Inserts a move game event to be picked up asynchronously by our
        # backround workers.
        event = {"type": "move", "player_id": player_id, "x": int(x), "y": int(y)}
        queries.insert_game_event(game_id, event)

    response = json.jsonify({"x": x, "y": y})
    return response

    Makes a move for a Quagen game

    Args:
        game_id (str): Id of game to take a move
        x (int): x location of move
        y (int): y location of move

    Returns:
        (Response) JSON coordinates of move
    
Makes a move for a Quagen game
Makes a move for a Quagen game
def game_move(game_id, x, y):
    game = queries.get_game(game_id)
    if game and "player_id" in session.keys():
        player_id = session["player_id"]
        event = {"type": "move", "player_id": player_id, "x": int(x), "y": int(y)}
        queries.insert_game_event(game_id, event)
    response = json.jsonify({"x": x, "y": y})
    return response
def game_move ( game_id , x , y ) : game = queries . get_game ( game_id ) if game and "player_id" in session . keys ( ) : player_id = session [ "player_id" ] event = { "type" : "move" , "player_id" : player_id , "x" : int ( x ) , "y" : int ( y ) } queries . insert_game_event ( game_id , event ) response = json . jsonify ( { "x" : x , "y" : y } ) return response
Makes a move for a Quagen game
Makes a move for a Quagen game
"""
    Makes a move for a Quagen game

    Args:
        game_id (str): Id of game to take a move
        x (int): x location of move
        y (int): y location of move

    Returns:
        (Response) JSON coordinates of move
    """ # Inserts a move game event to be picked up asynchronously by our # backround workers.
(Response) JSON coordinates of move
( Response ) JSON coordinates of move
game_id
Id of game to take a move
Id of game to take a move
x
x location of move
x location of move
y
y location of move
y location of move