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
评论列表
文章目录