struct

Guard

Inherits Struct < Value < Object

Constructors

new(map : Map, coord : Coord = map.guard_coord, direction : Direction = Direction::N)
Source

Instance methods

coord
Source
coord=(coord : Coord)
Source
direction
Source
direction=(direction : Direction)
Source
path
Source
path=(path : Array(Segment))
Source
turn
Source