This is a neat example.
I've given some thought to ranking; I think it's probably easier if it's builtin, and there is a condition such as:
'Hand is stronger than Other Hand', whereby the two hands can be entered using array parameters, like so:
{ 1, 2 }, { 33, 34} would be two hands, where the numbers were the card number in the deck.
There would have to be some options, such as 'ace is low', etc, but I think it'd work out pretty well.