module Advent::Day17

Defined in:

day17.cr

Constant Summary

ROCKS = [[Point.new(0, 0), Point.new(1, 0), Point.new(2, 0), Point.new(3, 0)], [Point.new(0, 1), Point.new(1, 1), Point.new(2, 1), Point.new(1, 2), Point.new(1, 0)], [Point.new(0, 0), Point.new(1, 0), Point.new(2, 0), Point.new(2, 1), Point.new(2, 2)], [Point.new(0, 0), Point.new(0, 1), Point.new(0, 2), Point.new(0, 3)], [Point.new(0, 0), Point.new(0, 1), Point.new(1, 0), Point.new(1, 1)]]

Class Method Summary

Class Method Detail

def self.complex_tetris(data : String, loop_count : Int32 = 2022) #

[View source]
def self.large_tetris(data : String, loop_count : Int64) #

[View source]
def self.run #

[View source]
def self.summarize(solid : Set(Point)) #

[View source]