public class maze extends mazebase { // default constructor suffices and is equivalent to // public maze() { super(); } @Override public void digout(int y, int x) // modify this function { // The following is a skeleton program that demonstrates the mechanics // needed for the completion of the program. // We always dig out two spaces at a time: we look two spaces ahead // in the direction we're trying to dig out, and if that space has // not already been dug out, we dig out that space as well as the // intermediate space. This makes sure that there's always a wall // separating adjacent corridors. M[y][x] = 1; // digout maze at coordinate y,x drawblock(y,x); // change graphical display to reflect space dug out nextframe(40); // show next animation frame after 40ms delay // But the following won't work (but will compile) // sample code that tries to digout one space to the left: if (x-1>=0) digout(y,x-1); // sample code that tries to digout TWO space to the right IF it's not // already dug out: if (x+2