private void writeNQueens(int n) {
   String outputFileName = n + "queens.xml";
   File outputFile = new File(outputDir, outputFileName);
   NQueens nQueens = createNQueens(n);
   solutionDao.writeSolution(nQueens, outputFile);
 }
Exemplo n.º 2
0
 public void generate() {
   String inputId = "munich-7teams";
   File outputFile = new File(outputDir, inputId + ".xml");
   TennisSolution tennisSolution = createTennisSolution(inputId);
   solutionDao.writeSolution(tennisSolution, outputFile);
 }