CSharpProlog icon indicating copy to clipboard operation
CSharpProlog copied to clipboard

Does constraints work?

Open furesoft opened this issue 3 years ago • 3 comments

furesoft avatar Jan 08 '22 18:01 furesoft

I'm sorry, but I could not understand what your question meant. Would you explain your question more elaborately?

jsakamoto avatar Jan 11 '22 09:01 jsakamoto

https://en.wikibooks.org/wiki/Prolog/Constraint_Logic_Programming

furesoft avatar Jan 11 '22 13:01 furesoft

@furesoft

Maybe I could say "Yes".

Please see the screenshot below that I tried on the "Prolog on Browser" ( https://jsakamoto.github.io/Prolog-on-Browser/ ), built on this library.

image

Note: The query dif(X, Y), member(X, [foo, bar]), member(Y, [foo, bar]). did not work as I expected. It will be the limitation of this library.

And the following article I wrote a year ago might be helpful for you. Please check it out.

jsakamoto avatar Jan 12 '22 09:01 jsakamoto