On 19/11/05, James Edward Gray II <james / grayproductions.net> wrote:
> On Nov 19, 2005, at 1:31 PM, Brian Schröäer wrote:
>
> >> Your script should output (to STDOUT) the Trump suit, followed by
> >> the cards in
> >> sorted order (highest card first):
> >>
> >>         Diamonds
> >>         Jh
> >>         Kd
> >>         Td
> >>         Kc
> >>         Ah
>
> > Hello James,
>
> Hello Brian.
>
> > I have to admit that I do not totally understand.
>
> That's probably just my terrible explination.  Let's see if I can
> clear it up...
>
> > Why is in the example the King of Clubs higher than the Ace of hearts.
>
> Cards are sorted first buy suit, then by value.  Trump is a better
> suit then the rest, but the others are equal and can come in any
> order.  The suit order above is Diamonds (Trump), Clubs, then
> Hearts.  Inside those suits, cards are sorted by face value.
>

Now I understand. I always sort my cards first by value then by suite.
That was the problem.

cheers,

Brian

> > [snip]
>
> Does that help?

Yes

>
> James Edward Gray II
>
>
>


--
http://ruby.brian-schroeder.de/

Stringed instrument chords: http://chordlist.brian-schroeder.de/