コード例 #1
0
 public Boolean ValidSpec(Dungeon d)
 {
     return(FullyConnectedSpec(d) && EnoughNodesSpec(d) && ExitnodeReachableSpec(d) && BridgesSpec(d));
 }
コード例 #2
0
 public Boolean ExitnodeReachableSpec(Dungeon d)
 {
     return(d.getStartnode().isReachable(d.getExitnode()));
 }
コード例 #3
0
 /*
  * 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");
 }