Exemple #1
0
def load_game(name):
    save = api.load_game(name)

    # Reset seed
    seed = random.randint(0, 2**32-1)
    save.game.set_seed(seed)

    return json.dumps(save.to_json())
Exemple #2
0
def load_game(name):
    return json.dumps(api.load_game(name).to_json())