in reply to Re: Keeping track of Pairs
in thread Keeping track of Pairs
Of course, no Perlmonks thread would be complete without the obligatory CPAN referral... believe it or not, even this has its own module: Games::Cards. It's thoroughly generic, so you'll still have to write your own scoring function (or adapt the Poker Probability processor as suggested by kscwab) but hand management at least is taken care of for you.
To reiterate what mattr said: this is what hashes are for. Why can't you use them? They will simplify your life greatly, really.
And of course, whatever internal representation you choose, don't forget flushes. :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Keeping track of Pairs
by mattr (Curate) on Jul 13, 2001 at 16:36 UTC |