I have a board solver which its general form of the solver likes the below:
solver(Board):-
constraints(Board),
search(Board).
It passes the constraint predicate, but there is an error in the search part which comes in the below:
search(Board):-
term_variables(Board,Vars),
sd:labeling(Vars).
The error occurs in the labeling predicate , and the error is:
instantiation fault in indomain(_258{[9 .. 13, 15 .. 20]})
So what is the problem? (I can't see inany problem in the indomain predicate).