Beispiel #1
0
    def get(self, bot_id=None, *args, **kwargs):
        if bot_id not in game_controller.games:
            return ResponseState.UNKNOWN_BOT.response

        game = game_controller.get(bot_id)

        assert isinstance(game, Game)
        return jsonify(game.export(bot_id))
Beispiel #2
0
    def get(self, *args, **kwargs):
        bot_id = uuid4().int

        game_controller.get(bot_id)
        return jsonify(bot_id=bot_id)