We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09b5e9b commit 48355c8Copy full SHA for 48355c8
src/Tetris/View.hs
@@ -12,5 +12,5 @@ showGame g@Game{..} =
12
showBoard :: Board -> String
13
showBoard b@Board{..} = concat $ mapChunks showRow boardWidth boardCells
14
where
15
- showRow cs = map showCell cs ++ "\n"
16
- showCell c = if c == fullCell then '\9608' else '.'
+ showRow cs = concatMap showCell cs ++ "\n"
+ showCell c = if c == fullCell then "\9608\9608" else "・"
0 commit comments