A gaming machine conducts a wagering game in response to a wager. The
machine provides a first group of first elements and a second group of
second elements. A first element from the first group is selected and
then compared to one or more second elements in the second group. The
machine awards a payout based on any matches between the selected first
element and the one or more second elements in the second group. The
second elements may be ranked, and the payout may be based on the rank of
any second elements that match the selected first element.