DangerousAreaModeSelector extends MsPacManModeSelector { public int numModes() { return 2; } DangerousAreaModeSelector(); static void updateScentMaps(); int mode(); int numModes(); @Override /** * gets the associated fitness scores with this mode selector based on the * danger of this area * * @return an int array holding the score for if the area is dangerous in * the first index and the score for if the area is safe in the * second index */ int[] associatedFitnessScores(); static HashMap<Integer, HashMap<Integer, Integer>> scentMaps; static double[] mazeAverages; static final int DANGEROUS; static final int SAFE; }
@Test public void testNumModes() { assertEquals(2, select.numModes()); }