On Sun, 2010-03-07 at 23:21 -0600, Elmer Fittery wrote:
> I was going to write a program using the poker-eval
> library that would:
> 
> given the following information:
> 
> one opponent
> known cards
> displayed common cards.
> 
> Determine the possible number of hands which can have
> the following:
> 
> 1. two of a kind pairs
> 2. three of a kind
> 3. straight
> 4. flush
> 5. full house
> 6. four of a kind
> 7. straight flush
> 8. royal flush
> 
> Does anybody know of a function in the poker-eval library that
> would make this easily done.
> 

I think poker-eval/examples/fish.c might be close to what you want:

 * An example program for the poker hand evaluation library.
 * It is so named because it performs the same action as a program written 
 * by Roy Hashimoto a long time ago.  
 * 
 * Given a (possibly empty) set of input cards, a (possibly empty)
 * set of dead cards, and the number of cards in a hand, this program
 * computes the distribution of each type of possible hand type after
 * exhaustively enumerating the set of possible hands which include the input
 * cards and exclude the dead cards


-- 
Johan Euphrosine <[email protected]>
Development and services around Free Software
http://www.aminche.com/

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users

Reply via email to