Answer by Daniel Lyons for Logical exclusive or in Prolog
For the most part, logic variables are already exclusive because they can only be bound once. You have defined here a rule color/1 with four bodies. When you query with an uninstantiated variable,...
View ArticleLogical exclusive or in Prolog
I am very new to Prolog and was trying to solve a logic puzzle with it. I am having trouble finding out how to do a logical exclusive or. Here is a very simple problem that explains the situation....
View Article
More Pages to Explore .....