def isPoisonCapsuleClose(self, state):
"""
You SHOULD use this function in your implementation. This function checks
if the poison from the pills can be sensed from the square you are at.
"""
return any([util.manhattanDistance(capsule, state) == 1 for capsule in self.capsules])
评论列表
文章目录