wild card matching Algorithm

These may be jokers, for example in Rummy games, or ordinary ranked and suited cards may be designated as wild cards (" deuces wild" in Poker is a common variant).A wild card in card games is one that may be used to represent any other playing card, sometimes with certain restrictions.

wild card matching source code, pseudocode and analysis