|
package day22
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
func Run() int {
|
|
fmt.Print("oi, hello day 22")
|
|
filename := "day22/input"
|
|
blocks := ReadBlockFile(filename)
|
|
byZ := BlocksByZ(blocks)
|
|
|
|
space := NewSpace(byZ)
|
|
space.SettleAll()
|
|
|
|
result := space.ThirdTimeCountFreeBlocks()
|
|
return result
|
|
}
|