コード例 #1
0
 def getGhost2Close(self,agent,gameState,action,successor):
     return min(moreUtil.getGhostDistFeature(self,agent, successor,self.opp[1]) , ESCAPE_DIST) 
コード例 #2
0
 def getHasGhost(self,agent,gameState,action,successor):
     dist1 = moreUtil.getGhostDistFeature(self,agent, successor,self.opp[0])
     dist2 = moreUtil.getGhostDistFeature(self,agent, successor,self.opp[1])
     return int(min(dist1,dist2) < ESCAPE_DIST) - 0.5
コード例 #3
0
 def getGhost2Dist(self,agent,gameState,action,successor):
     return moreUtil.getGhostDistFeature(self,agent, successor,self.opp[1])