Tidied kb1 definition
authorNeil Smith <neil.git@njae.me.uk>
Fri, 2 Dec 2016 13:33:04 +0000 (13:33 +0000)
committerNeil Smith <neil.git@njae.me.uk>
Fri, 2 Dec 2016 13:33:04 +0000 (13:33 +0000)
advent02.hs

index 25b78c82c3108f98434a7e34fc36526ce9df91fb..99df10c23390948b8ff3adaf72c3493a3796f041 100644 (file)
@@ -4,11 +4,11 @@ import Data.Array.IArray
 type Position = (Int, Int)
 type Keyboard = Array Position Char
 
-kb1 = [['x', 'x', 'x', 'x', 'x']
-       ['x', '1', '2', '3', 'x']
-       ['x', '4', '5', '6', 'x'],
-       ['x', '7', '8', '9', 'x'],
-       ['x', 'x', 'x', 'x', 'x']]
+kb1 = ["xxxxx"
+       "x123x"
+       "x456x",
+       "x789x",
+       "xxxxx"]
 
 kb2 = ["xxxxxxx",
        "xxx1xxx",