src/main/java/org/teachingextensions/logo/utils/PuzzleUtils/Puzzle.java
public static int getDistance(Point start, Point end)
  {
    return Math.abs(start.x - end.x) + Math.abs(start.y - end.y);
  }
public static int getDistance(Point start, Point end)
  {
    return Math.abs(start.x - end.x) + Math.abs(start.y - end.y);
  }
public static int getDistance ( Point start , Point end ) { return Math . abs ( start . x - end . x ) + Math . abs ( start . y - end . y ) ; }
Calculate the <a href="http://en.wikipedia.org/wiki/Taxicab_geometry">Manhattan Distance</a> between two positions.

@param start
The starting position.
@param end
The ending position.
@return The distance between the two positions.
Calculate the <a href = http : // en . wikipedia . org / wiki / Taxicab_geometry > Manhattan Distance< / a > between two positions .