Comments for the ryan kingMusic and Technology, but NO TECHNO!Comment on poker classes for php by John- July 5, 2008 I agree, this is a really rough class but man the scoring system you came up with is brilliant. Also when checking for a royal flush you can't just assume "royalflush or straightflush = (flush&&straight);" because it's possible for there to be a flush and a straight out of the seven cards with out there being either or. You have to check for a flush, extract those specific cards from the array and then check to see if it's a straight. Then you can determine whether or not it's a royalstriaght...http://theryanking.com/entries/2004/10/04/php-test/#comment-104621 |