by Zobody · 10mo ago · 0 comments
See
https://gist.github.com/Macuyiko/86299dc120478fdff529cab386f...
You can more precisely track flows and do maximization with ILP, but that often loses conflict-driven clause learning advantages.
Like the other comment suggested, running a loop where you keep adding constraints that eliminate invalid solutions will probably work for any puzzle that a human would want to solve.