Thanks for the hint.
I wrote this
for example rule 14
rule14(L):-append(_,[office(_,publicrelations,_,_,_),office(blue,_,_,_,_)|_],L);append(_,[office(blue,_,_,_,_),office(_,publicrelations,_,_,_)|_],L).Is it correct?
I dont get the desired results.
The public relations office is next to blue office.This is the last rule.
How can i represent for example these rules "the green office is right from orange office","the employee who has blackberry is next from employee with windows 7 laptop" without position argument?I am a little confused.
I have develop the following code to solve einsteins problem.The version of my problem is:there are 5 offices and 5 employees.Each office has different color.Each employee works in different department ,he drinks different drink,he has different cellphone and pc. The problem has the following...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.