Giter Club home page Giter Club logo

got-check's Introduction

⚔️ GoT Check

Game of Thrones character database and family trees in Prolog

⚠️ACCURATE UP TO THE END OF SEASON 7 - FULL OF SPOILERS!💀

Run using SWI-Prolog or similar.

GoTCheck.pl analyses facts about parents, gender, and dead/alive status of Game of Thrones characters in all major houses, and implements rules. Queries call upon these rules, which use recursion and lists to sift through the database, analysing family trees and returning information.

Queries include the following:

  • Relationship - Find the relationship between X and Y

    ?-relationship(X, Y).
  • Parents - X is the parent of Y. Can also query mother/father

    ?-parent(X, Y). 

    List all parents of a character X

    ?-parents(X, Parents).
  • Children - X is the child of Y. Can also query son/daughter

    ?-child(X, Y).

    List all children of a character X

    ?-children(X, Children).
  • Sibling - X the sibling of Y. Can also query brother/sister

    ?-sibling(X, Y).

    List all siblings of a character X

    ?-list_siblings(X, Siblings).
  • Aunt, Uncle, Neice, Nephew - Can all be queried like the above, where X is the relation to Y

  • Lineage - X is the ancestor / descendant of a list of characters

    ?-ancestors(X, Ancestor_of).
    ?-decendants(X, Descendant_of).
  • Alive/Dead - Find out if a character is still alive

    ?-alive_or_dead(X).
  • Full Profile - Gathers all relationships and status of a character

    ?-tell_me_about(X).
  • Rightful Heir - Find the rightful heir to the iron throne

    ?-rightful_heir(X).
  • Aryas List - See Aryas progress through her list

    ?-aryas_list

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.