if maze_lvl == 5: return p.TRM16 if maze_lvl == 6: return p.TROO0 return p.pos if __name__ == '__main__': args = init() s = utils.login() if not s: exit(-1) pather = Pather(args.start) pather.travel(args.dst) logging.info("start") page = act.mode_sneak(s) roo_maze_lvl = 7 next_dst = args.dst while True: game = parse_page(page.content) logging.debug("gstate={}".format(game)) utils.tick_delay() # TODO: oop