示例#1
0
def load(filename, port=DEFAULT_PORT, timeout=DEFAULT_TIMEOUT,
         human_team_name=None, ai_filename=None, ai_team_num=1):
    """Load save file, construct an HumanAIBattle based on it"""
    return HumanAIBattle(None, port=port, timeout=timeout,
                         human_team_name=human_team_name,
                         ai_filename=ai_filename, ai_team_num=ai_team_num,
                         prev_info=battle.load_prev_info(filename))
示例#2
0
def load(filename, port=DEFAULT_PORT, timeout=DEFAULT_TIMEOUT,
         ai0_filename=None, ai1_filename=None):
    """Load save file, construct an AIBattle based on it"""
    return AIBattle(None, port=port, timeout=timeout,
                    ai0_filename=ai0_filename, ai1_filename=ai1_filename,
                    prev_info=battle.load_prev_info(filename))
示例#3
0
def load(filename):
    return Replayer(battle.load_prev_info(filename))