jkomoros / sudoku

A sudoku puzzle solver, generator, and difficulty-rater built in Go
Apache License 2.0
5 stars 1 forks source link

Figure out a better way to get data to i-sudoku's debug-hint #273

Open jkomoros opened 8 years ago

jkomoros commented 8 years ago

Right now we smuggle hout HumanSolvePossibleSteps and CompoundSolveStep.ScoreExplanation. Both are just revealed for i-sudoku, but I wish that other users of the library didn't have to be distracted by them. I don't think there's a way to handle the structuring of the library better, but I wish there were. :-(

jkomoros commented 8 years ago

One way would be to have an Internals object that has the offending functions that take the receiver as the first argument. That way the internals object can be exported but obviously not intended for use.