Last active
November 6, 2015 16:03
-
-
Save JosephLenton/d97f8ada758803c185d6 to your computer and use it in GitHub Desktop.
Animal Modelling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- the animals in my zoo | |
Animal = { id, name } | |
-- a way to describe an animal | |
Description = { id, option_num, name } | |
-- example descriptions | |
Descriptions = | |
-- size | |
{ 1, 1, "small" } | |
{ 1, 2, "large" } | |
{ 1, 3, "huge" } | |
-- skin | |
{ 2, 1, "no furr" } | |
{ 2, 2, "furr" } | |
{ 2, 3, "scales" } | |
-- colour | |
{ 3, 1, "black" } | |
{ 3, 2, "white" } | |
{ 3, 3, "red" } | |
-- many more ways to describe animals | |
-- descriptions for my animals | |
AnimalDescription = { Animal.id, Description.id, Description.option_num } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment