Commit 872d374c authored by Finzel, Bettina's avatar Finzel, Bettina
Browse files

Added output files, updated Readmes and simplified dialogue

parent 3a951b46
tracks_down(bobby,parsley) is_parent is_(parsley,plant) .
tracks_down(bobby,parsley) is_parent is_(bobby,herbivore) .
is_(parsley,plant) is_parent is_a(parsley,herb) .
is_(parsley,plant) is_parent is_(herb,plant) .
is_a(parsley,herb) is_parent true .
is_(herb,plant) is_parent is_a(herb,plant) .
is_a(herb,plant) is_parent true .
is_(bobby,herbivore) is_parent is_a(bobby,rabbit) .
is_(bobby,herbivore) is_parent is_(rabbit,herbivore) .
is_a(bobby,rabbit) is_parent true .
is_(rabbit,herbivore) is_parent is_a(rabbit,herbivore) .
is_a(rabbit,herbivore) is_parent true .
tracks_down(fluffy,clover) is_parent is_(clover,plant) .
tracks_down(fluffy,clover) is_parent is_(fluffy,herbivore) .
is_(clover,plant) is_parent is_a(clover,flower) .
is_(clover,plant) is_parent is_(flower,plant) .
is_a(clover,flower) is_parent true .
is_(flower,plant) is_parent is_a(flower,plant) .
is_a(flower,plant) is_parent true .
is_(fluffy,herbivore) is_parent is_a(fluffy,rabbit) .
is_(fluffy,herbivore) is_parent is_(rabbit,herbivore) .
is_a(fluffy,rabbit) is_parent true .
is_(rabbit,herbivore) is_parent is_a(rabbit,herbivore) .
is_a(rabbit,herbivore) is_parent true .
tracks_down(fluffy,rosemary) is_parent is_(rosemary,plant) .
tracks_down(fluffy,rosemary) is_parent is_(fluffy,herbivore) .
is_(rosemary,plant) is_parent is_a(rosemary,herb) .
is_(rosemary,plant) is_parent is_(herb,plant) .
is_a(rosemary,herb) is_parent true .
is_(herb,plant) is_parent is_a(herb,plant) .
is_a(herb,plant) is_parent true .
is_(fluffy,herbivore) is_parent is_a(fluffy,rabbit) .
is_(fluffy,herbivore) is_parent is_(rabbit,herbivore) .
is_a(fluffy,rabbit) is_parent true .
is_(rabbit,herbivore) is_parent is_a(rabbit,herbivore) .
is_a(rabbit,herbivore) is_parent true .
tracks_down(tipsie,rosemary) is_parent is_(rosemary,plant) .
tracks_down(tipsie,rosemary) is_parent is_(tipsie,herbivore) .
is_(rosemary,plant) is_parent is_a(rosemary,herb) .
is_(rosemary,plant) is_parent is_(herb,plant) .
is_a(rosemary,herb) is_parent true .
is_(herb,plant) is_parent is_a(herb,plant) .
is_a(herb,plant) is_parent true .
is_(tipsie,herbivore) is_parent is_a(tipsie,mouse) .
is_(tipsie,herbivore) is_parent is_(mouse,herbivore) .
is_a(tipsie,mouse) is_parent true .
is_(mouse,herbivore) is_parent is_a(mouse,herbivore) .
is_a(mouse,herbivore) is_parent true .
tracks_down(bella,bobby) is_parent is_(bobby,herbivore) .
tracks_down(bella,bobby) is_parent is_(bella,carnivore) .
is_(bobby,herbivore) is_parent is_a(bobby,rabbit) .
is_(bobby,herbivore) is_parent is_(rabbit,herbivore) .
is_a(bobby,rabbit) is_parent true .
is_(rabbit,herbivore) is_parent is_a(rabbit,herbivore) .
is_a(rabbit,herbivore) is_parent true .
is_(bella,carnivore) is_parent is_a(bella,fox) .
is_(bella,carnivore) is_parent is_(fox,carnivore) .
is_a(bella,fox) is_parent true .
is_(fox,carnivore) is_parent is_a(fox,carnivore) .
is_a(fox,carnivore) is_parent true .
tracks_down(bella,tipsie) is_parent is_(tipsie,herbivore) .
tracks_down(bella,tipsie) is_parent is_(bella,carnivore) .
is_(tipsie,herbivore) is_parent is_a(tipsie,mouse) .
is_(tipsie,herbivore) is_parent is_(mouse,herbivore) .
is_a(tipsie,mouse) is_parent true .
is_(mouse,herbivore) is_parent is_a(mouse,herbivore) .
is_a(mouse,herbivore) is_parent true .
is_(bella,carnivore) is_parent is_a(bella,fox) .
is_(bella,carnivore) is_parent is_(fox,carnivore) .
is_a(bella,fox) is_parent true .
is_(fox,carnivore) is_parent is_a(fox,carnivore) .
is_a(fox,carnivore) is_parent true .
tracks_down(samson,fluffy) is_parent is_(fluffy,herbivore) .
tracks_down(samson,fluffy) is_parent is_(samson,carnivore) .
is_(fluffy,herbivore) is_parent is_a(fluffy,rabbit) .
is_(fluffy,herbivore) is_parent is_(rabbit,herbivore) .
is_a(fluffy,rabbit) is_parent true .
is_(rabbit,herbivore) is_parent is_a(rabbit,herbivore) .
is_a(rabbit,herbivore) is_parent true .
is_(samson,carnivore) is_parent is_a(samson,dog) .
is_(samson,carnivore) is_parent is_(dog,carnivore) .
is_a(samson,dog) is_parent true .
is_(dog,carnivore) is_parent is_a(dog,carnivore) .
is_a(dog,carnivore) is_parent true .
tracks_down(bobby,dandelion) is_parent is_(dandelion,plant) .
tracks_down(bobby,dandelion) is_parent is_(bobby,herbivore) .
is_(dandelion,plant) is_parent is_a(dandelion,flower) .
is_(dandelion,plant) is_parent is_(flower,plant) .
is_a(dandelion,flower) is_parent true .
is_(flower,plant) is_parent is_a(flower,plant) .
is_a(flower,plant) is_parent true .
is_(bobby,herbivore) is_parent is_a(bobby,rabbit) .
is_(bobby,herbivore) is_parent is_(rabbit,herbivore) .
is_a(bobby,rabbit) is_parent true .
is_(rabbit,herbivore) is_parent is_a(rabbit,herbivore) .
is_a(rabbit,herbivore) is_parent true .
% tree operators
:- op(500,xfx,'is_parent').
:- op(500,xfx,'is_sibling_of').
X is_sibling_of Y :- Z is_parent X, Z is_parent Y, X \== Y.
leaf_node(Node) :- \+ is_parent(Node,Child).
:- op(500,xfx,'is_at_same_level').
X is_at_same_level Y :- W is_parent X,Z is_parent Y,W is_at_same_level Z.
\ No newline at end of file
% tree operators
:- op(500,xfx,'is_parent').
:- op(500,xfx,'is_sibling_of').
X is_sibling_of Y :- Z is_parent X, Z is_parent Y, X \== Y.
leaf_node(Node) :- \+ is_parent(Node,Child).
:- op(500,xfx,'is_at_same_level').
X is_at_same_level Y :- W is_parent X,Z is_parent Y,W is_at_same_level Z.
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment