by astigsen on 11/13/17, 11:22 PM with 4 comments
by MekaiGS on 11/14/17, 12:06 AM
https://en.wikipedia.org/wiki/AC-3_algorithm
You would need to implement something like forward checking or backtracking algorithm to solve all possible boards with higher cost.