Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def updateGrid(grid: List[List[Int]], update: List[(Int, Int, Int)]): List[List[Int]] = update match{
- case List() => grid
- case (x,y,z)::xs => updateGrid(grid.updated(x, grid(x).updated(y,z)), update.tail)
- }
- new Sudoku(updateGrid(sudoku.grid, chooseSingleton(allHypothesis)))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement