From: Neil Smith Date: Fri, 9 Dec 2016 18:22:09 +0000 (+0000) Subject: Made show a bit clearer X-Git-Url: https://git.njae.me.uk/?p=advent-of-code-16.git;a=commitdiff_plain;h=2e78ae2ccdfa9165e65ee3b583d2341bdb959217 Made show a bit clearer --- diff --git a/advent08.hs b/advent08.hs index c89ba80..7def6d1 100644 --- a/advent08.hs +++ b/advent08.hs @@ -22,8 +22,8 @@ mkScreen w h = array ((0, 0), (h - 1, w - 1)) showScreen :: Screen -> String showScreen screen = unlines [showRow r | r <- [minRow..maxRow]] where ((minRow, minCol), (maxRow, maxCol)) = bounds screen - showCell True = '#' - showCell False = '.' + showCell True = '*' + showCell False = ' ' showRow r = [showCell (screen!(r, c)) | c <- [minCol..maxCol]] countLights :: Screen -> Int