stepByStepMAze: Plot maze solution (path)

Description Usage Arguments Value Examples

Description

Plot maze solution (path)

Usage

1
stepByStepMAze(gD = NA, nrows = 0, ncols = 0, inShiny = FALSE)

Arguments

gD

an existing maze graph object.

nrows

maze hight (number of rows); default value set to 0.

ncols

maze width (number of columns); default value set to 0.

inShiny

a flag that marks whether the function is called from a shiny app or console.

Value

The maze solution is found as the shortest path between the start and end maze cells (currently, start and end points of the maze are fixed). The function uses ggplot to plot a maze.

Examples

1
2
maze1 <- makeGraph(10, 10)
maze1 <- makeMaze_dfs(maze1, stepBystep = TRUE, nrows=10, ncols=10)

Vessy/Rmaze documentation built on May 9, 2019, 9:54 p.m.