Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating finalInfo #506

Open
sg777 opened this issue Nov 19, 2021 · 0 comments
Open

Updating finalInfo #506

sg777 opened this issue Nov 19, 2021 · 0 comments

Comments

@sg777
Copy link
Contributor

sg777 commented Nov 19, 2021

Since there can be a scenario, where multiple winners are possible and each winner can win different stake of the pot, so instead of sending the win_amount value, the BE is pushing an array of winningAmounts depending upon the number of winners and also the BE is pushing the settleAmounts which are funds left at the end of the hand(without deducting any commissions)

{
    "method": "finalInfo",
    "showInfo": {
        "allHoleCardsInfo": [
            [
                "6D",
                "3D"
            ],
            [
                "AH",
                "JH"
            ],
            [
                "4S",
                "AS"
            ]
        ],
        "boardCardInfo": [
            "JS",
            "6H",
            "9S",
            "AD",
            "10S"
        ]
    },
    "win_amount": 242,
    "winners": [
        1
    ],
    "winningAmounts": [
        82
    ],
    "settleAmounts": [
        160,
        82,
        78
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant