def random_level_for_episode(request, episodeID): """ Generates a new random level based on the episodeID Redirects to :view:`game.views.play_level` with the id of the newly created :model:`game.Level`. """ episode = cached_episode(episodeID) level = random_road.create(episode) return play_anonymous_level(request, level.id, False, random_level=True)
def start_episode(request, episodeId): episode = cached_episode(episodeId) return play_level(request, episode.first_level, False)