Skip to content

This project implements the genealogical tree of the famous Joestar family from JoJo's Bizarre Adventure using the power of declarative logic in Prolog.

Notifications You must be signed in to change notification settings

nikumu/joestar-family-genealogical-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Joestar Family Genealogical Tree

This project implements the genealogical tree of the famous Joestar family from JoJo's Bizarre Adventure, using the power of declarative logic in Prolog.

Features:

  • Family relationships such as father, mother, and grandparents.
  • Gender identification (male and female) for each family member.
  • Simple and complex queries, such as ancestors, descendants, and family connections.

How to use:

  • Ask questions in the form of Prolog queries to explore the Joestar family relationships.
  • Example questions:
  1. Who are Joseph Joestar's children?
?- parent(joseph_joestar, Child).
  1. Is Jolyne Cujoh a descendant of Jonathan Joestar?
?- parent(jonathan_joestar, X), parent(X, Y), parent(Y, Z), parent(Z, jolyne_cujoh).
  1. To find all children of George Joestar I (george_joestar_i):
?- parent(george_joestar_i, Child).
  1. To list all grandchildren of Jonathan Joestar:
?- grandparent(jonathan_joestar, Grandchild).
  1. To check if Giorno Giovanna is a grandson of George Joestar I:
?- grandparent(george_joestar_i, giorno_giovanna).
  1. To find the father of Jolyne Cujoh:
?- parent(Father, jolyne_cujoh).
  1. To list all females in the genealogical tree:
?- female(Person).
  1. To find all ancestors of Jolyne Cujoh:
?- parent(Ancestor, jolyne_cujoh); parent(Ancestor, X), parent(X, jolyne_cujoh); parent(Ancestor, Y), parent(Y, X), parent(X, jolyne_cujoh).

This project is perfect for learning Prolog while exploring the JoJo universe!

Joestar Birthmark

About

This project implements the genealogical tree of the famous Joestar family from JoJo's Bizarre Adventure using the power of declarative logic in Prolog.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages