most players keep generation strategies close to the chest
that's good for winning games, but not for learning
I'm ready to do some learning
so here are the two strategies I use
both implemeted in my solver 2008-08-11
the first strategy takes a valid patterns game entry seed-grid
and iteratively selects clues at random and sets them to
alternate candidate values according to the pencilmark grid
- Code: Select all
sudoku -n256 -gtp10000.100.60.30 -e "minimal==1&&uniq()" seed-grid
-n256 limits the iterative process to 256 valid entries
(the -gtp... option is defined by the --man option to the solver)
there is a helper script that iterates over the current game entries
for most games after ~3 days this process stabilizes and produces few new entries
the second strategy, used in the past few games, starts with an ordered-grid
with the first 8 clues set to 1..8, left to right, top to bottom
the remaining clue values are iteratively set in minlex order, again using the
pencilmark grid to select candidate values
- Code: Select all
sudoku -gtpe.8 -qFNB -e minimal==1 ordered-grid
the output of this process is filtered by
- Code: Select all
sudoku -e '(%#Hq)==(%#Dq)'
before being passed to sudoku explainer for rating
this selects puzzles with the hardest rating (%#Hq) equal to the diamond rating (%#Dq)
(the rating in my solver is based on the constraint order, controlled by the -q option)
the second strategy has yet to complete for the recent patterns
but it does seem to generate more high ER puzzles than the first strategy
sudoku explainer is still the bottleneck, by a large margin, for both strategies