module Day13
Included Modules
Extended Modules
Defined in:
day13.crConstant Summary
-
CART_CHARS =
{'>' => Dir::West, '<' => Dir::East, '^' => Dir::North, 'v' => Dir::South}
-
DIR_DELTA =
{Dir::North => {0, -1}, Dir::South => {0, 1}, Dir::East => {-1, 0}, Dir::West => {1, 0}}
-
ROAD_CHARS =
{'/' => Road::SlashTurn, '\\' => Road::BackslachTurn, '|' => Road::Vertical, '-' => Road::Horizontal, '+' => Road::Cross, ' ' => Road::Empty}
-
TURN_ORDER =
{Turn::Left => Turn::Straight, Turn::Straight => Turn::Right, Turn::Right => Turn::Left}