Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
Day06
Inherits
Day
<
Reference
<
Object
Constants
Dx = {
Dir::Left
=> [-1, 0],
Dir::Right
=> [1, 0],
Dir::Up
=> [0, -1],
Dir::Down
=> [0, 1]}
Turns = {
Dir::Left
=>
Dir::Up
,
Dir::Right
=>
Dir::Down
,
Dir::Up
=>
Dir::Right
,
Dir::Down
=>
Dir::Left
}
Instance methods
calculate_moves
(grid, x, y, zx, zy) :
Bool
Source
part1
(input)
Source
part2
(input)
Source
Nested types
Day06::Dir