Giter Club home page Giter Club logo

family-tree-king-arthur's Introduction

Please make sure you have Python3 and pip installed before you begin.

To run this application, using command prompt, move to the directory where these files are stored. Run the following commands:

    pip install -r requirements.txt

To run the main python file, run the following command: python -m meet_the_family

2 sample input files are provided in IO folder with names "input1.txt" and "input2.txt" whose expected outputs are in "output1.txt" and "output2.txt" respectively. Each input file contains lines of the format:

    ADD_CHILD mother_name child_name gender
    GET_RELATIONSHIP name relation_name

To run the test file, run the following command: python -m test

Note: Assumptions:

  1. Same Sex Marriage is not allowed.
  2. Divorce and marriage again is not allowed.
  3. Child addition is possible only if both parents exist (Single parent not allowed)

GET_RELATIONSHIP supports the following relations:

  1. Paternal-Uncle
  2. Maternal-Uncle
  3. Paternal-Aunt
  4. Maternal-Aunt
  5. Son
  6. Daughter
  7. Siblings
  8. Brother
  9. Sister
  10. Sister-In-Law
  11. Brother-In-Law

family-tree-king-arthur's People

Contributors

dileepvemula avatar

Watchers

James Cloos avatar  avatar

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.