Exemplo n.º 1
0
 /**
  * The printMark method changes contents of the MazeCell to '#' here invoked Queue is shortest
  * path.
  */
 public void printMark(MazeCell pathCell) {
   pathCell.hash();
   while (pathCell.getParent() != null) {
     pathCell = pathCell.getParent();
     pathCell.hash();
   }
 }