Ejemplo n.º 1
0
 public static IProblem <NQueensBoard, QueenAction> createIncrementalFormulationProblem(int boardSize)
 {
     return(new GeneralProblem <NQueensBoard, QueenAction>(new NQueensBoard(boardSize),
                                                           NQueensFunctions.getIFActionsFunction(),
                                                           NQueensFunctions.getResultFunction(),
                                                           NQueensFunctions.testGoal));
 }
Ejemplo n.º 2
0
 public static IProblem <NQueensBoard, QueenAction> createCompleteStateFormulationProblem
     (int boardSize, NQueensBoard.Config config)
 {
     return(new GeneralProblem <NQueensBoard, QueenAction>(new NQueensBoard(boardSize, config),
                                                           NQueensFunctions.getCSFActionsFunction(),
                                                           NQueensFunctions.getResultFunction(),
                                                           NQueensFunctions.testGoal));
 }