public void TestHuntAndKillColored() { var coloredGrid = new ColoredGrid(25, 25); HuntAndKill.On(coloredGrid); coloredGrid.Distances = coloredGrid.GetCenterCell().Distances; coloredGrid.ToBitmap().Save("huntandkill-colored.png"); }
public void TestBinaryTreeColoredGrid() { var coloredGrid = new ColoredGrid(25, 25); Sidewinder.On(coloredGrid); coloredGrid.Distances = coloredGrid.GetCenterCell().Distances; coloredGrid.ToBitmap().Save("sidewinder-colored.png"); }
public void TestGrowingTreeColored() { var coloredGrid = new ColoredGrid(25, 25); GrowingTree.On(coloredGrid); coloredGrid.Distances = coloredGrid.GetCenterCell().Distances; coloredGrid.ToBitmap().Save("growingtree-colored.png"); }
public void TestRecursiveBacktrackerColored() { var coloredGrid = new ColoredGrid(25, 25); RecursiveBacktracker.On(coloredGrid); coloredGrid.Distances = coloredGrid.GetCenterCell().Distances; coloredGrid.ToBitmap().Save("recursivebacktracker-colored.png"); }
public void TestBinaryTreeColoredGrid() { BinaryTree.On(grid); grid.Distances = grid.GetCenterCell().Distances; var bitmap = grid.ToBitmap(); Assert.IsNotNull(bitmap); }
public void TestRecursiveDivisionColoredGrid() { var coloredGrid = new ColoredGrid(25, 25); RecursiveDivision.On(coloredGrid); coloredGrid.Distances = coloredGrid.GetCenterCell().Distances; coloredGrid.ToBitmap().Save("recursivedivision-colored.png"); }
public void TestAldousBroderColored() { var coloredGrid = new ColoredGrid(25, 25); AldousBroder.On(coloredGrid); coloredGrid.Distances = coloredGrid.GetCenterCell().Distances; coloredGrid.ToBitmap().Save("aldousbroder-colored.png"); }
public void TestWilsonsColoredGrid() { var coloredGrid = new ColoredGrid(25, 25); Wilsons.On(coloredGrid); coloredGrid.Distances = coloredGrid.GetCenterCell().Distances; coloredGrid.ToBitmap().Save("wilsons-colored.png"); }
private ColoredGrid ShortestPath(ColoredGrid maze) { var start = maze.GetCenterCell(); var distances = start.Distances(); maze.Distances = distances; //maze.Distances = distances.PathTo(maze.GetCell(maze.Rows - 1, maze.Columns - 1)); return(maze); }