Skip to content

Commit

Permalink
Allow for remainder of printed characters to be untranslated in day10p2
Browse files Browse the repository at this point in the history
  • Loading branch information
devries committed Dec 11, 2023
1 parent ea8cebc commit 66fd7b1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion day10p2/solution.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,12 @@ func (m PipeMaze) Print() {

for j := 0; j >= miny; j-- {
for i := 0; i <= maxx; i++ {
fmt.Printf("%c", translations[m[utils.Point{X: i, Y: j}]])
v := m[utils.Point{X: i, Y: j}]
c := translations[m[utils.Point{X: i, Y: j}]]
if c == 0 {
c = v
}
fmt.Printf("%c", c)
}
fmt.Printf("\n")
}
Expand Down

0 comments on commit 66fd7b1

Please sign in to comment.