Ejemplo n.º 1
0
def start():
    data = bottle.request.json

    # print(json.dumps(data))

    color = "#736CCB"

    return start_response(color)
Ejemplo n.º 2
0
def start():
    data = bottle.request.json
    """
    TODO: If you intend to have a stateful snake AI,
            initialize your snake state here using the
            request's data if necessary.
    """
    print(json.dumps(data))

    color = "#000000"

    return start_response(color)
Ejemplo n.º 3
0
def start():
    data: Any = request.json
    print("Starting game %s" % data["game"]["id"])
    return api.start_response("#ffb6c1")
Ejemplo n.º 4
0
def start():
    data = bottle.request.json
    print(json.dumps(data))
    color = "#AA2288"

    return start_response(color)
Ejemplo n.º 5
0
def start():
    game_state = bottle.request.json
    snake_colour = "#ff0000"
    return start_response(snake_colour)