def isWumpusClose(self, state):
"""
You SHOULD use this function in your implementation. This function checks
if the stench of the wumpus can be sensed from the square you are at.
"""
return util.manhattanDistance(self.wumpus, state) == 1
评论列表
文章目录