Top Level Namespace

Defined in:

Constant Summary

COMPLETION_POINTS = {')' => 1_i64, ']' => 2_i64, '}' => 3_i64, '>' => 4_i64}
ERROR_POINTS = {')' => 3, ']' => 57, '}' => 1197, '>' => 25137}
REGEX = /^(\d+),(\d+)\s->\s(\d+),(\d+)$/

Method Summary

Method Detail

def age_fish(fish : Array(Int8), days : Int32) : Array(Int8) #

[View source]
def age_fish(fish : Hash(Int8, Int64), days : Int32) : Hash(Int8, Int64) #

[View source]
def decode(input, known = nil) #

[View source]
def fill_basin(x, y, index, basins) #

[View source]
def find_paths(cave, paths : Array(Array(String)) = [["start"]]) : Array(Array(String)) #

[View source]
def find_paths2(cave, paths : Array(Array(String)) = [["start"]]) : Array(Array(String)) #

[View source]
def find_rating(bits, low = false) #

[View source]
def flash(energy : Array(Array(Int8))) : Array(Array(Int8)) #

[View source]
def flip(char : Char) : Char #

[View source]
def map_vents(path, diagonal = false) #

[View source]
def overlap(vents) #

[View source]
def parse_complete?(tokens : Array(Char), parents : Array(Char) = [] of Char) : Array(Char) | Nil #

[View source]
def parse_error?(tokens : Array(Char), parents : Array(Char) = [] of Char) : Char | Nil #

[View source]
def print_map(vents) #

print map


[View source]
def round(num : Float) : Int #

[View source]