Skip to content
This repository has been archived by the owner on Oct 27, 2023. It is now read-only.
/ Animals Public archive

An implementation in Erlang of the classic game which demonstrates an "expert system"

License

Notifications You must be signed in to change notification settings

catseye/Animals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Animals

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.

Description

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.

License

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

Running

To build the animals module, run the script make.sh 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.