Sudoku
Describing the Problem & the Solution
sudoku :: Comp ()
sudoku = do
problem <- inputList2 Public 9 9 :: Comp [[UInt 4]]
solution <- inputList2 Private 9 9 forM_ [0 .. 8] $ \i ->
forM_ [0 .. 8] $ \j ->
assert $
cond
(problem !! i !! j `eq` 0)
true
((problem !! i !! j) `eq` (solution !! i !! j))Checking the problem matrix
Checking the solution matrix
Last updated