DungeonGenerator generator;
if (getArg("switches") != null) {
generator = new DungeonGenerator(new StdoutLogger(), seed, constraints);
} else {
generator = new LinearDungeonGenerator(new StdoutLogger(), seed,
constraints);
}
if (getArg("no-goal") != null) {
generator.setGenerateGoal(false);
}