def getGhost2Close(self,agent,gameState,action,successor): return min(moreUtil.getGhostDistFeature(self,agent, successor,self.opp[1]) , ESCAPE_DIST)
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
def getGhost2Dist(self,agent,gameState,action,successor): return moreUtil.getGhostDistFeature(self,agent, successor,self.opp[1])