Skip to content

Commit

Permalink
Better rendering for day 13 on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nlowe committed Dec 14, 2019
1 parent b188f70 commit 28ff73e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions challenge/day13/b.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func b(challenge *challenge.Input) int {
r := ' '
switch tile {
case tileBlock:
r = tcell.RuneBlock
r = '\u2588'
case tileBall:
bx = x
if bx < px {
Expand All @@ -101,12 +101,12 @@ func b(challenge *challenge.Input) int {
joystick <- positionNeutral
}

r = '0'
r = '\u25ef'
case tileHorizontalPaddle:
px = x
r = '\u2582'
r = '\u2015'
case tileWall:
r = '='
r = '\u2591'
}

term.SetContent(x, 1+y, r, nil, tcell.StyleDefault)
Expand Down

0 comments on commit 28ff73e

Please sign in to comment.