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