2023 Day 17 Complete

This commit is contained in:
2023-12-17 10:52:08 -06:00
parent a34f05d1af
commit d64a18280f
16 changed files with 517 additions and 131 deletions

View File

@@ -5,15 +5,15 @@ import (
"fmt"
"os"
"../../"
h "git.bullercodeworks.com/brian/adventofcode/helpers"
)
func main() {
if len(os.Args) < 3 {
fmt.Println("Usage: ./day18 <filename> <numrows>")
}
input := aoc.FileToBytes(os.Args[1])
numRows := aoc.Atoi(os.Args[2])
input := h.FileToBytes(os.Args[1])
numRows := h.Atoi(os.Args[2])
room := [][]byte{input}
for row := 1; row < numRows; row++ {