Algorithmic alchemy system for a role playing game.