Re: poker card game revisited (code included)

2005-06-16 Thread flupke
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.

Re: poker card game revisited (code included)

2005-06-08 Thread Erik Max Francis
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

Re: poker card game revisited (code included)

2005-06-08 Thread John Hazen
[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

Re: poker card game revisited (code included)

2005-06-08 Thread flupke
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

Re: poker card game revisited (code included)

2005-06-08 Thread Erik Max Francis
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

Re: poker card game revisited (code included)

2005-06-07 Thread flupke
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

Re: poker card game revisited (code included)

2005-06-07 Thread Erik Max Francis
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

poker card game revisited (code included)

2005-06-07 Thread flupke
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

poker card game revisited (code included)

2005-06-06 Thread flupke
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

poker card game revisited (code included)

2005-06-06 Thread flupke
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