posted 2 years ago

It's a Sudoku puzzle, I can display it fine, but how do I send it to the printer? Doing a screen cap doesn't count. Needs to have lines showing a 9x9 array, bonus if the starting numbers are bolded or somesuch.

To be honest a local paper has a contest where if you finish their puzzle in 4 days you can win a t-shirt. I spent 2 days writing a java Sudoku solver, now I don't care about the t-shirt I just want my name to show up where nobody of any importance can see it.

If you want the code let me know, I'll email it to you. It's really fun as every time I enter the solve routine I print out the depth, then use gnuplot to graph the results. Takes 2-3 seconds to solve the puzzle, I'm guessing 90% of that is printing the depth, but graphing the result is strangely hypnotic.

To be honest a local paper has a contest where if you finish their puzzle in 4 days you can win a t-shirt. I spent 2 days writing a java Sudoku solver, now I don't care about the t-shirt I just want my name to show up where nobody of any importance can see it.

If you want the code let me know, I'll email it to you. It's really fun as every time I enter the solve routine I print out the depth, then use gnuplot to graph the results. Takes 2-3 seconds to solve the puzzle, I'm guessing 90% of that is printing the depth, but graphing the result is strangely hypnotic.

Being cremated is my last chance at having a smoking hot body.

Campbell Ritchie

Marshal

Posts: 56209

171

posted 2 years ago

What algorithm do you use to solve the puzzle? I used the naïve technique of subtracting from sets of available numbers so I can see backtracking. I had one puzzle (there is a chap at Coventry who has a database of 22000 puzzles) which took over 5× as long for the computer to solve as it took me with a pencil.

posted 2 years ago

Forget solving it. I'd like to know how to

Winston

Campbell Ritchie wrote:What algorithm do you use to solve the puzzle?

Forget solving it. I'd like to know how to

*create*a Sudoku puzzle, 'cause I bet once you've got that, the solution's easy.

Winston

"Leadership is nature's way of removing morons from the productive flow" - Dogbert

Articles by Winston can be found here

Consider Paul's rocket mass heater. |