You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
randomSudoku :: IO ()
randomSudoku = do [r] <- rsolveNs [emptyN]
showNode r
sudokuEmptyblocks <- deleteBlocks r
s <- genProblem sudokuEmptyblocks --making this a sudoku problem
showNode s
print (uniqueSol s) --- this must be added. Otherwise you cannot see
--- that the solution is unique
The text was updated successfully, but these errors were encountered:
Exercise 2. Very good but refactoring can be more complete.
In many more places is it possible to replace Constraints by [Position]
type Node = (Sudoku,[Position])
prune :: (Row,Column,Value)
-> [Position] -> [Position]
constraints :: Sudoku -> [Position]
Exercise 4.
The text was updated successfully, but these errors were encountered: