Open G-h-o-s-t opened 9 years ago
i click games ,but i cant see any games ,can u help me
any progress on this issue?
You have correctly identified that the hand evaluation is wrong, but it should be a split pot - not a win for player 1 as you suggested.
Both players share the winning hand (AQJ33) - the 85 and 83 are both irrelevant because the best 5 card hand is comprised solely of the shared cards.
@h3nry0 You are correct it is a split pot here
POKER: Example: Shared cards: A J 3 Q 3 (30, 27, 51, 44, 67) player1 cards: 8 5 (72, 37) player2 cards: 8 2 (56, 34)
player 2 win with message (rank): "one pair". It's wrong. See screenshot. I think, the payer 1 must win with: highcard.
Also, i think, i'm found missing code for Holdem.sort function, then we need check last pair for double. need to add at bottom of if block: else if (d3 === 0) { // ABCXX -> XXABC for(var i=0; i<3; i++) cards.push( cards.shift() ); } else { // ABCDE }