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
I tried a long time ago to make an algorithm that would generate these boxes in real time for given boards, but after several tries I gave up.
But that's very interesting
I thought a bit about it, and did some research on how to generate a killer sudoku:
Basically, we cheat a bit. Fill a Grid with a valid combination first. This get's stored as the solution, so we don't have to calculate it manually.
"Invent" the cages for killer sudoku
Depending on the selected difficulty, throw all of, or only a part of the generated grid away.
That way we have both a solution and a valid killer sudoku. Sadly, this is not perfect, as killer sudokus can have multiple solutions. Impementing this would also not fit in perfectly, as I saw you store the sudoku grid with an int array. I think this would not work for a killer sudoku, as we have to store both the numbers that are in our killer sudoku, which cage each tile belongs to, and the sum of the cage.
Sadly, I'm not exactly proficient with developing of android apps, that does not help too.
Would it be possible to add a mode for killer sudoku? (Basically add boxes which display the sums of their elements.)
I might take up on this and fork if I can make some time.
The text was updated successfully, but these errors were encountered: