Add toString method for Box Add code to print the shortest path for this particular case.
17 lines
204 B
Java
17 lines
204 B
Java
package maze;
|
|
|
|
public class ABox extends EBox{
|
|
|
|
public ABox (String label, int x, int y, Maze maze) {
|
|
|
|
super(label,x,y,maze) ;
|
|
|
|
}
|
|
|
|
@Override
|
|
public boolean isArrival() {
|
|
return true ;
|
|
}
|
|
|
|
}
|