def build_hand_watten_agent(self,
                                agent_profile,
                                native_multi_gpu_enabled=False):

        if agent_profile == EnvironmentSelector.HAND_WATTEN_RANDOM:
            return AgentRandom()
        if agent_profile == EnvironmentSelector.HAND_WATTEN_HUMAN:
            return HandWattenHumanAgent(self.game_mapping[agent_profile.game])
    def build_asymmetric_sub_watten_agent(self,
                                          agent_profile,
                                          native_multi_gpu_enabled=False):

        if agent_profile == EnvironmentSelector.ASYMMETRIC_SUB_WATTEN_AGENT_RANDOM:
            return AgentRandom()

        return None
    def build_durak_agent(self, agent_profile, native_multi_gpu_enabled=False):

        game = self.game_mapping[agent_profile.game]

        if agent_profile == EnvironmentSelector.DURAK_AGENT_RANDOM:
            return AgentRandom()
        elif agent_profile == EnvironmentSelector.DURAK_AGENT_HUMAN:
            return DurakHumanAgent(game=game)
        return None
    def build_total_watten_agent(self,
                                 agent_profile,
                                 native_multi_gpu_enabled=False):

        game = self.game_mapping[agent_profile.game]

        if agent_profile == EnvironmentSelector.TOTAL_WATTEN_AGENT_RANDOM:
            return AgentRandom()
        elif agent_profile == EnvironmentSelector.TOTAL_WATTEN_AGENT_HUMAN:
            return TotalWattenHumanAgent(game)
    def build_tictactoe_agent(self,
                              agent_profile,
                              native_multi_gpu_enabled=False):

        game = self.game_mapping[agent_profile.game]

        if agent_profile == EnvironmentSelector.TICTACTOE_AGENT_RANDOM:
            return AgentRandom()
        elif agent_profile == EnvironmentSelector.TICTACTOE_AGENT_HUMAN:
            return TicTacToeHumanAgent(game=game)
        return None
Пример #6
0
    def build_basic_checkers_agent(self,
                                   agent_profile,
                                   native_multi_gpu_enabled=False):
        game = self.game_mapping[agent_profile.game]

        if agent_profile == EnvironmentSelector.CHECKERS_AGENT_ALPHA_BETA:
            return CheckersAgentAlphaBeta()
        elif agent_profile == EnvironmentSelector.CHECKERS_AGENT_RANDOM:
            return AgentRandom()
        elif agent_profile == EnvironmentSelector.CHECKERS_AGENT_HUMAN:
            return CheckersHumanAgent(game)
        return None
    def build_sub_watten_agent(self,
                               agent_profile,
                               native_multi_gpu_enabled=False):

        game = self.game_mapping[agent_profile.game]

        if agent_profile == EnvironmentSelector.SUB_WATTEN_AGENT_RANDOM:
            return AgentRandom()
        elif agent_profile == EnvironmentSelector.SUB_WATTEN_AGENT_HUMAN:
            return SubWattenHumanAgent(game)
        elif agent_profile == EnvironmentSelector.SUB_WATTEN_AGENT_BAGGING:
            return SubWattenBaggingModel(game)

        return None