Description Usage Arguments Value Examples
Given a perfect maze graph, create an imperfect maze graph.
| 1 | makeImperfect(gD = NA, ptc = 20, inShiny = FALSE)
 | 
| gD | an existing maze graph object. | 
| ptc | percentage of walls to randomly add or remove; default value is 10(percent). | 
| inShiny | a flag that marks whether the function is called from a shiny app or console. | 
A maze graph object containing an imperfect maze.
| 1 2 3 4 5 | maze1 <- makeGraph(10, 10)
maze1 <- makeMaze_dfs(maze1)
plotMaze(maze1, 10, 10)
maze1 <- makeImperfect(maze1)
plotMaze(maze1, 10, 10)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.