def manhattan_distance(position, other):
    """Return Manhattan distance between points.

    AKA taxicab distance - sum of absolute differences. Diagonal movement has twice the cost.

    """
    return abs(position.x-other.x) + abs(position.y-other.y)