I'm looking for code or a description of an algorithm for determining the score of a poker hand when deuces are wild. I'd like code that is not encumbered by license fees, GPL, patents, etc.
I know a couple of ways to approach this, but I'd prefer to not write the code if it is already available somewhere. So I'd appreciate it if the answers are confined to links to actual working code or detailed algorithmic descriptions.
(I'm not asking anyone to "do my homework for me." I can write the code myself, so pseudocode and implementation suggestions are not needed. I just don't want to waste time solving an already-solved problem.)