Categories
Mastering Development

family tree in SWI PROLOG

there is some error with the grandma , cousin, brother, uncle rules i tried so many rules but still could not find the correct one it returns false , please helpppppppppp /*rules*/ male(james). male(charles). male(william). female(megan). male(george). female(catherine). female(diana). female(elizabith). parent(james, charles). parent(james, elizabeth). parent(charles, catherine). parent(charles, william). parent(charles, megan). parent(elizabeth, diana). parent(diana, george). /*rules*/ […]

Categories
Development

need a proof in Prolog

I am My own grandpa in ProLog Many, many years ago when I was twenty-three I was married to a widow who was pretty as could be. This widow had a grown-up daughter who had hair of red. My father fell in love with her and soon they, too, were wed. This made my dad […]