don't actually need to do the maxx/maxy check

This commit is contained in:
David 2021-12-13 19:10:53 -05:00
parent 6b2abb3ebc
commit 6b1552d65e
1 changed files with 2 additions and 12 deletions

View File

@ -119,19 +119,9 @@ func partTwo() {
}
}
}
// find outer bounds of letters
maxy, maxx := 0, 0
for p := range points {
if p.y > maxy {
maxy = p.y
}
if p.x > maxx {
maxx = p.x
}
}
// print letters
for y := 0; y <= maxy; y++ {
for x := 0; x <= maxx; x++ {
for y := 0; y < 6; y++ {
for x := 0; x < 5*8; x++ {
if _, ok := points[point{x: x, y: y}]; ok {
fmt.Printf("#")
} else {