class

AoC2022::Day22

Inherits AoC2022::Solver < Reference < Object

Constants

FACING_VALUE = {'R' => 0, 'D' => 1, 'L' => 2, 'U' => 3}
NEXT_FACING = { {'U', 'R'} => 'R', {'R', 'R'} => 'D', {'D', 'R'} => 'L', {'L', 'R'} => 'U', {'U', 'L'} => 'L', {'R', 'L'} => 'U', {'D', 'L'} => 'R', {'L', 'L'} => 'D'}

Constructors

new(input : String)
Source

Instance methods

cube_warps
Source
edge_warps
Source
part1
Source
part2
Source

Nested types