* @param h The cards to examine.
* @param aceHigh True if aces are higher than kings.
*/
public static PlayingCard highCard( PileOfCards h, boolean aceHigh )
{
PlayingCard high = NullPlayingCard.getInstance();
Enumeration cards = h.elements();
while (cards.hasMoreElements())
{
PlayingCard c = (PlayingCard)cards.nextElement();
if (higherThan( c, high, aceHigh ))
high = c;
}
return high;
}