class Aoc::Day11::SeatMap

Defined in:

day/11.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(lines : Array(String)) #

[View source]
def self.new(seats : Array(Array(Seat))) #

[View source]

Instance Method Detail

def ==(other) #
Description copied from class Reference

Returns false (other can only be a Value here).


[View source]
def converge(crowding_point, &count_adjacent_seats : Int32, Int32, SeatMap -> Int32) #

[View source]
def naive_adjacency_count(row, column) #

[View source]
def num_filled #

[View source]
def ray_tracing_adjacency_count(row, column) #

[View source]
def tick(crowding_point, & : Int32, Int32, SeatMap -> Int32) #

[View source]