Skip to content

SWI-Prolog: Just a simple "is this phenotype possible" logic program based on punnett square logic. Used for fictional universes.

License

Notifications You must be signed in to change notification settings

kgmills/FictionalPhenos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FictionalPhenos

SWI-Prolog: Just a simple "is this phenotype possible" logic program based on punnett square logic. Used for fictional universes.

This is just a simple SWI Prolog program I decided to make in my free time to Determine the possible phenotypes of offspring given a specified ruleset. It is mainly for fictional characters to see if a universe obeys simple genetics by punnett square logic. Does not have much code yet, just a few tests. To run this code and the current tests with SWI Prolog, you will need to consult genotypeInformation.pl which contains the ruleset for dominant/recessive genes (can be arbitrary, whatever you desire)

I assume you've used SWI Prolog before, and know how to import predicates using the consult command. If not: http://www.swi-prolog.org/

About

SWI-Prolog: Just a simple "is this phenotype possible" logic program based on punnett square logic. Used for fictional universes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages