John Hazen wrote:
> [Erik Max Francis]
>
Searching for straights and flushes is much better done by masks.
>
>
> Interesting. I've been thinking about playing with this stuff too, but
> hadn't considered masks. So each card has a representation:
>
> n bits for rank, then m bits for suit.
John Hazen wrote:
> Interesting. I've been thinking about playing with this stuff too, but
> hadn't considered masks. So each card has a representation:
>
> n bits for rank, then m bits for suit.
>
> 10 0001 = 2 clubs
> 01 1000 = K spades
> ...
You can also deal with t
[Erik Max Francis]
> > > Searching for straights and flushes is much better done by masks.
Interesting. I've been thinking about playing with this stuff too, but
hadn't considered masks. So each card has a representation:
n bits for rank, then m bits for suit.
10 0001 = 2 clubs
010
Erik Max Francis wrote:
> flupke wrote:
>
>> Which projects are you talking about? I only found a library in c to
>> evaluat ranks but i didn't find the code to be very understandable.
>
>
> pokersource is the main was I was thinking about, yes.
>
>> With histogram do you mean something like t
flupke wrote:
> Which projects are you talking about? I only found a library in c to
> evaluat ranks but i didn't find the code to be very understandable.
pokersource is the main was I was thinking about, yes.
> With histogram do you mean something like this:
> Card hand: 2 clubs, 3 diamonds, 1
Erik Max Francis wrote:
> flupke wrote:
>
First of all, my apologies for the double posts. I can only see this
reply and can't see my original messages. I posted the message from home
and work and they didn't show up. We use the same isp at home and at
work so it's probably a problem on their
flupke wrote:
> i've included the code so people can take a look.
> I've tried to expand on the thread of 26/05/2005 on "Checking for a full
> house". Code is suboptimal as I coded it rather quickly.
> I've added the "normal" classes one would expect from a cardgame: card,
> deck, hand etc.
>
> 1
Hi,
i've included the code so people can take a look.
I've tried to expand on the thread of 26/05/2005 on "Checking for a full
house". Code is suboptimal as I coded it rather quickly.
I've added the "normal" classes one would expect from a cardgame: card,
deck, hand etc.
1. I can detect most thin
Hi,
i've included the code so interested people can take a look.
I've tried to expand on the thread of 26/05/2005 on "Checking for a full
house". Code is suboptimal as I coded it rather quickly.
I've added the "normal" classes one would expect from a cardgame: card,
deck, hand etc.
1. I can detec
Hi,
i've included the code so interested people can take a look.
I've tried to expand on the thread of 26/05/2005 on "Checking for a full
house". Code is suboptimal as I coded it rather quickly.
I've added the "normal" classes one would expect from a cardgame: card,
deck, hand etc.
1. I can det
10 matches
Mail list logo