예제 #1
0
 @Test
 public void testPeanoCurveGenerator() {
   final GridLogoProgram mazeProgram = new PeanoCurveProgram(2, true);
   final GridLogoProgramRunnerMazeGenerator spaceFillingCurveMazeGenerator =
       new GridLogoProgramRunnerMazeGenerator(mazeProgram);
   spaceFillingCurveMazeGenerator.generateMaze(grid);
 }
예제 #2
0
 @Test
 public void testHilbertCurveGenerator() {
   final GridLogoProgram mazeProgram = new HilbertCurveProgram(3, false);
   final GridLogoProgramRunnerMazeGenerator spaceFillingCurveMazeGenerator =
       new GridLogoProgramRunnerMazeGenerator(mazeProgram);
   spaceFillingCurveMazeGenerator.generateMaze(grid);
 }