Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
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