'backup'
This commit is contained in:
parent
0f4b7d5261
commit
524449df4f
@ -37,10 +37,10 @@ mother(X,Y) :- female(X),parent(X,Y).
|
||||
son(X,Y) :- male(X),parent(Y,X).
|
||||
dauther(X,Y) :- female(X),parent(Y,X).
|
||||
|
||||
uncle(X,Y) :- male(X),brother(X,Z),parent(Z,Y)
|
||||
uncle(X,Y) :- male(X),brother(X,Z),parent(Z,Y).
|
||||
brother(X,Y) :- male(X),parent(Z,X),parent(Z,Y),X\=Y.
|
||||
|
||||
aunt(X,Y) :- sister(X,Z),parent(Z,Y)
|
||||
aunt(X,Y) :- sister(X,Z),parent(Z,Y).
|
||||
sister(X,Y) :- female(X),parent(Z,X),parent(Z,Y),X\=Y.
|
||||
|
||||
grandmother(X,Y) :- mother(X,Z),parent(Z,Y).
|
||||
|
Loading…
Reference in New Issue
Block a user