Starting from:

$30

Project #1: Family Tree

AI Project #1: Family Tree

Create a program in Prolog to represent your family tree going back at least 3
generations. Facts should be the predicates parent, married, male and female. Use rules
to define all other family relationships (such as grandfather, aunt, sister, son, half sibling,
ancestor, etc.) You may find some intermediate rules to be helpful to simplify the rest of
the rules significantly.
Submit a working .pl file with a significant number of code comments to show your
understanding and demonstrates the rules with multiple test cases.
[D:\COMP 469] swipl family.pl
Welcome to SWI-Prolog (threaded, 64 bits, version 7.6.4)
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.
Please run ?- license. for legal details.
For online help and background, visit http://www.swi-prolog.org
For built-in help, use ?- help(Topic). or ?- apropos(Word).
1 ?- cousin(X, ‘Steven Wirsz’).
X = ‘Kinsey W’ ;
X = ‘Kyra W’ ;
X = ‘Cheryl R’ ;
X = ‘Richard R’ ;
X = ‘Ted S’ ;
false.
Last Revised: January 26, 2018
1

More products