Variables : All squares to be uncovered. Domain : D={0,1}, where 0 denotes not a mine and 1 denotes a mine Constraints : The number on a square is the sum of its neighbour’s value. X1=1 X1+X2=1 X1+X2+X3+X4=3 X_4=1$ …