Checking for a full house
Raymond Hettinger
python at rcn.com
Thu May 26 02:56:25 EDT 2005
[Paul Rubin]
> 1. "Flush" means 5 cards of the same suit (i.e. all hearts), not 5 of
> a kind.
More importantly, the (5) should be (5,). Also the poker terminology
should be expressed in terms of dice rolls (the OP's use case).
> 2. That code doesn't detect flushes or straights.
It also doesn't cook hamburgers, drink beer, play chess, or anything
else unrelated to the OP's use case.
More information about the Python-list
mailing list