MazeGazer_class: Class to help visualize the inner workings of SearchMaze.

Description Usage Format Examples

Description

MazeGazer adds a history entry that collects each paze the algorithm visits.

Usage

1

Format

An object of class R6ClassGenerator of length 24.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
M <- matrix(ncol = 4, byrow = TRUE, c(
  0, 1, 0, 0,
  0, 1, 0, 1,
  0, 1, 0, 1,
  0, 0, 0, 0
  ))

mg <- MazeGazer$new(M)
mg$run(c(1, 1), c(1, 4))

mg$history

machow/astar-r documentation built on May 12, 2019, 7:35 a.m.