Re: Programming a Poker Game
My first suggestion would be to see if the source code for pokenum is publicly available. I'm guessing it probably is, and it will likely have a good answer for you.
I've thought about this a little, since I thought it would be interesting to try and work out a good representation for these kinds of things myself. One idea I had (which I haven't pursued in great depth) is to try and use regular expressions for doing hand evaluation. I don't know how easy that is in C++, though.
|