You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
}
The text was updated successfully, but these errors were encountered:
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
}
The text was updated successfully, but these errors were encountered: