public Boolean ValidSpec(Dungeon d) { return(FullyConnectedSpec(d) && EnoughNodesSpec(d) && ExitnodeReachableSpec(d) && BridgesSpec(d)); }
public Boolean ExitnodeReachableSpec(Dungeon d) { return(d.getStartnode().isReachable(d.getExitnode())); }
/* * Create a game with a dungeon of the specified level and capacityMultiplier. * This also creates a proper instance of Player. */ public Game(int level, int capacityMultiplier) { dungeon = new Dungeon(level, capacityMultiplier); player = new Player("player"); }