Description Usage Arguments Value Examples
Create a connected maze graph that represents a rectangular grid. Nodes represent cells and edges betweem nodes represent wall sites. All walls are initially on.
1 | makeGraph(nrows = 0, ncols = 0)
|
nrows |
maze hight (number of rows); default value set to 0. |
ncols |
maze width (number of columns); default value set to 0. |
This function creates and returns a maze graph that represents a rectangular grid that matches user specified maze dimensions. Nodes in the graph will be named in the format Aij, where i corresponds to a row number and j corresponds to a column number.
1 2 3 | maze1 <- makeGraph(10, 10)
maze1 <- makeMaze_dfs(maze1)
plotMaze(maze1, 10, 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.