Implementation of the game cows and bulls: http://en.wikipedia.org/wiki/Bulls_and_cows