Skip to content

Commit 48355c8

Browse files
committed
Use double-width glyphs to remove visual distortion
1 parent 09b5e9b commit 48355c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Tetris/View.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ showGame g@Game{..} =
1212
showBoard :: Board -> String
1313
showBoard b@Board{..} = concat $ mapChunks showRow boardWidth boardCells
1414
where
15-
showRow cs = map showCell cs ++ "\n"
16-
showCell c = if c == fullCell then '\9608' else '.'
15+
showRow cs = concatMap showCell cs ++ "\n"
16+
showCell c = if c == fullCell then "\9608\9608" else ""

0 commit comments

Comments
 (0)