AnyGhostEdibleModeSelector extends MsPacManModeSelector { public int numModes() { return 2; } AnyGhostEdibleModeSelector(); int mode(); int numModes(); @Override /** * gets the associated fitness scores with this mode selector based on human * selected parameters * * @return an int array holding the score for no edible ghosts in the first * index and the score for some edible ghosts in the second index */ int[] associatedFitnessScores(); static final int NO_EDIBLE_GHOSTS; static final int SOME_EDIBLE_GHOST; final boolean awardProperPowerPillEating; final boolean punishImproperPowerPillEating; final boolean levelObjective; }
@Test public void testNumModes() { assertEquals(2, select.numModes()); }