Advent-of-Code-2023/day22/sandSlabs.go

19 lines
271 B
Go

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.CountChainReactoins()
return result
}