solve() takes a function that solves the puzzle
This commit is contained in:
		
							parent
							
								
									9ebabd4b56
								
							
						
					
					
						commit
						189589c0e6
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -140,7 +140,7 @@ class Sudoku: | |||
|         return all(expected == set(g) for g in all_groups) | ||||
| 
 | ||||
|     def solve(self, solver): | ||||
|         return solver.solve(self) | ||||
|         return solver(self) | ||||
| 
 | ||||
|     def set(self, x, y, value): | ||||
|         idx = self._xy_to_idx(x, y) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue