class AdventOfCode::AsteroidField

Defined in:

crystal/10.1.cr
crystal/10.2.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(field : Set(Tuple(Int32, Int32))) #

[View source]

Class Method Detail

def self.from_map(input : String) #

[View source]

Instance Method Detail

def blow_up(from) #

[View source]
def field : Set(Asteroid) #

[View source]
def field=(field : Set(Asteroid)) #

[View source]
def line_of_sight?(from : Asteroid, to : Asteroid) #

[View source]
def visible_asteroids(from : Asteroid) #

[View source]
def visible_asteroids_num(from : Asteroid) : Int32 #

[View source]