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
Just to be clear. The winner array contain three components:
The player's seat index
The five cards constituting the winning hand, and the value of the winning hand (ranking and strength)
The player's hole cards (the two cards dealt to each player face down)
Has there been some sort of misunderstanding or is this an actual issue? I can't see any inconsistencies in the JSON data you provide above. (From what I can tell it looks like there was a split pot as both players could form a straight from the community cards and using the Jack from their own hole cards.)
To dig into the potential problem... What do you mean by "issue occurs just before processing the results"? Do you mean at some point before the river community card is dealt, the list of community cards actually contains one of the first player's hole cards (ie "rank": "J", "suit": "diamonds"). Would you know how the list of community cards look when the issue occurs, and how it should look instead if things worked as expected?
I was playing recently after implementing it in my project, and I encountered an issue.
I got
{ "rank": "J", "suit": "diamonds" }
repeating in both Player 0's hand cards and the community cards.Winners() List:
Although the community cards end with these five cards after the river's betting round, this issue occurs just before processing the results:
Community cards.
other information.
0's cards: [ { rank: '4', suit: 'diamonds' }, { rank: 'J', suit: 'diamonds' } ]
1's cards: [ { rank: 'J', suit: 'clubs' }, { rank: '6', suit: 'hearts' } ]
The text was updated successfully, but these errors were encountered: