SearchMaze2D_class: AStar subclass demonstrating 2D maze navigation.

Description Usage Format Examples

Description

Has methods for all function arguments of astar. Takes a 2d matrix with 0 for walkable tiles, and any other number for walls

Usage

1

Format

An object of class R6ClassGenerator of length 24.

Examples

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

sm <- SearchMaze2D$new(M)
sm$run(c(1, 1), c(1, 4))

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