@ -306,6 +306,12 @@ class World:
return estimated_speed * total_flat_distance
def goal(self, p: Point) -> bool:
"""
Equivalent to `p == world.finish`
return p == self.finish
if __name__ == '__main__':
import doctest
doctest.testmod()