Skip to content

Instantly share code, notes, and snippets.

@JosephLenton
Last active November 6, 2015 16:03
Show Gist options
  • Save JosephLenton/d97f8ada758803c185d6 to your computer and use it in GitHub Desktop.
Save JosephLenton/d97f8ada758803c185d6 to your computer and use it in GitHub Desktop.
Animal Modelling
-- 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