How does the generator works
surendra.jainPosted: Wed Mar 8 2017 11:14 pm

Dear Admin,

   Can you please tell me how does your kakuro generator works. 

Thanks,

Surendra


AdminPosted: Thu Mar 23 2017 05:26 pm

surendra.jain wrote :

Dear Admin,

   Can you please tell me how does your kakuro generator works. 

Thanks,

Surendra

First, it generates a valid kakuro grid. Once it's done that, it generates a valid solution for the grid, then totals up all the rows and columns and uses those totals for the clues. Then, it attempts to solve the puzzle, using only logic. Unless you get really lucky, it won't be solved, so any numbers it does solve are kept for the next iteration, with new numbers generated around them. Repeat until you get a puzzle that is fully solved.

It's not a great way of doing it, I'm sure there are better ways, but given the relative (compared to sudoku) lack of programs for kakuros, any better ways would probably be something to come up with yourself.


surendra.jainPosted: Mon Mar 27 2017 03:35 am

Could you please be more elaborate on the iteration process. Also how does you generate new numbers.