public class myastar extends astar { static pathfinder PF; public myastar(int r, int c) { super(r,c); } public void customize() // overrides astar.customize() { // Things you can do here... //astar.setRandFactor(0.13); // increase amount of water/fire //setcosts(50,0,100,20); // change costs of land, desert, fire, water } public static void main(String[] av) { pathfinder.main(av);} // must @Override: //public coord search(int sy, int sx, int ty, int tx) } /* Where do I start? I wrote this version of search that returns a straight path to the target, without regard to obstacles, and in some cases skipping hexagons. It won't work and you need to change it, and to do that YOU NEED TO READ THE LAB DESCRIPTION and possibly rewatch the lectures. @Override public coord search(int sy, int sx, int ty, int tx) { coord current = new coord(sy,sx); int x = sx, y=sy; while (current.y!=ty || current.x!=tx) { x = current.x; y=current.y; if (xtx) x--; if (yty) y--; coord next = new coord(y,x); next.prev=current; current = next; }// main while return current; }//search */