nic appleby


Pangolin is a guessing game played between a human and the computer. The player thinks of an animal and the computer asks a series of questions and then tries to guess what the animal is. Have a go against the computer...

Want to play a game?

I, Robot
Think of an animal, any animal.
You, Human

The AI

This was originally a project I was given at university, as part of a functional programming course, in Prolog. The Artificial Intelligence has a memory, structured as a Binary Tree. Leaf nodes are animals whilst other nodes are questions. The intelligence traverses the tree by asking the question nodes and branching left or right depending on the answer. When it reaches a leaf node it makes a guess. If it is wrong, it learns the animal the user had in mind.

The intelligence is implemented in Python, using the Google App Engine as a framework.