multiAgent.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:xiao_multiagent 作者: namidairo777 项目源码 文件源码
def newGame(self, layout, targetAgent, pursuerAgents, display, catchExceptions = False):

        agents = [targetAgent] + pursuerAgents[:layout.getNumPursuers()]

        initState = GameState()
        initState.initialize(layout, len(pursuerAgents))
        game = Game(agents, display, self, catchExceptions = catchExceptions)
        game.state = initState
        self.initialState = initState.deepCopy()
        return game
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号