chore(day17): fix missing changes
All checks were successful
Go Test / build (pull_request) Successful in 38s

This commit is contained in:
xuu
2024-01-01 09:52:49 -07:00
parent 378e403c1c
commit 36fed356a1
6 changed files with 274 additions and 143 deletions

View File

@@ -45,7 +45,7 @@ func run(scan *bufio.Scanner) (*result, error) {
}, nil
}
var OFFSET = map[string]aoc.Point{
var OFFSET = map[string]aoc.Point[int]{
"R": {0, 1},
"D": {1, 0},
"L": {0, -1},
@@ -77,7 +77,7 @@ func fromColor(c string) aoc.Vector {
}
func findArea(vecs []aoc.Vector) int {
shoelace := []aoc.Point{{0, 0}}
shoelace := []aoc.Point[int]{{0, 0}}
borderLength := 0
for _, vec := range vecs {