from .auto_fight import AutoFight
from .battle_choose import BattleChooseSolver


class FightSolver:
    def run(
        self,
        level_name,
        opers,
        actions,
        groups=[],
        auto_choose: bool = True,
        squad: int = None,
        support_oper: list = [],
    ):
        """
        Args:
            level_name: 关卡名
            opers: 干员列表
            actions: 行动列表
            groups: 干员组列表
            auto_choose: 是否自动选择干员编队
            squad: 队伍编号
            support_oper: 助战干员
            min_elite: 助战干员精英化等级的最低要求
            min_level: 助战干员等级的最低要求
            retry_times: 助战刷新次数
        """
        if auto_choose:
            BattleChooseSolver().run(
                level_name,
                opers,
                groups,
                squad,
                support_oper,
            )
        AutoFight().run(level_name, opers, actions, groups)
