Skip to content

jasonjk192/Fish-Tycoon-Prolog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fish Tycoon Prolog

Uses prolog language to determine body/fin combinations for parent-child relations of the game Fish Tycoon.

directRelationFish() determines if there exist a relation between the 2 parents and the target child species. showDirectRelationFish() creates a kind of path from 2 parents to the target child species.

showDirectRelationBody(), showDirectRelationFin() are similar to directRelationFish(). directRelationBody(), directRelationFin() are similar to showDirectRelationFish().

indirectRelationBody() and indirectRelationFin() allow for the language prediction to start with the 2 parents being able to also mix with other types.

You can of course use variables to let the language predict the outcomes which is quite interesting.

Python file

Uses directRelationFish() to generate unique descendants (not same body or fin types as the starting species).

TODO: Ability to choose if parents/children are user-specified or dynamically generated using prolog logic.

Why this?

I wanted to find a way to determine if I could reach a target species given 2 parent species. It's mostly for fun to be honest. Feel free to play around.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published