Nickleaton / sudoku

0 stars 0 forks source link

Frame Refinement #189

Open Nickleaton opened 2 years ago

Nickleaton commented 2 years ago

x digits sum to total

import itertools.product as cardinal_product choices = {} for numbers in cardinal_product(digits * x): if sum(numbers) == Total: # or product or ... choices |= set(numbers)

Then add restrictions for the resulting choices set.