import java.util.*;

public class Verifier
{
    public static final String EXAMPLE_FILE = "example.txt";
    public static final int EXAMPLE_RESULT = 802;
    
    public static final int TARGET_ASTEROID_NUMBER = 200;

    public Verifier (boolean debug)
    {
        _debug = debug;
    }

    // consider adding expected dimensions of grid as an assertion?

    public boolean verify ()
    {
        boolean ok = false;
        Map theMap = new Map(EXAMPLE_FILE);

        if (_debug)
        {
            System.out.println("Loaded map "+theMap.getHeight()+" by "+theMap.getWidth());

            System.out.println("\nLoaded map ...\n\n"+theMap);
        }
        
        Asteroid bestLocation = theMap.getMonitoringStation();

        System.out.println("**best location "+bestLocation.getPosition());

        Vector<Target> results = theMap.sortedTargets(bestLocation);

        Target theSpecificTarget = results.elementAt(TARGET_ASTEROID_NUMBER -1);

        System.out.println("**target "+theSpecificTarget);

        return ok;
    }

    private boolean _debug;
}
@@ -295,70 +295,149 @@
    /
-/ consider adding expected dimensions of grid as an assertion?
+*%0A     * Could iterate through the other known asteroids as they are destroyed%0A     * rather than going straight to the final answer.%0A     */
 %0A%0A  
@@ -1094,24 +1094,203 @@
 icTarget);%0A%0A
+        int value = theSpecificTarget.toDestroy().getPosition().getX()*100 + theSpecificTarget.toDestroy().getPosition().getY();%0A        %0A        ok = (value == EXAMPLE_RESULT);%0A%0A
         retu

Update Verifier.java