Animals /

Filename Size Date modified Message
7 B
21 B
118 B
921 B
1.2 KB
102 B


This is Cat's Eye Technologies' distribution of the classic computer game of Animals, which demonstrates an "expert system". This version is written in Erlang.


This game stores a 'knowledge tree' about the animals it knows in a nested tuple structure. This is mainly to demonstrate how one can work with binary trees as Erlang terms. A more serious implementation would probably use a real database system, such as Mnesia.


This work is in the public domain. See the file UNLICENSE for more information.


To build the animals module, run the script from the root directory of the distribution.

After the module has been built, the game can be played by running the script animals in the bin directory. This script can be run from anywhere; it knows to locate the module and the data files in the distribution directory.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.