chips-blockchain / pangea-poker

This is the reference GUI for Pangea Poker, blackchain based decentralised game.
https://chips.cash/
25 stars 16 forks source link

Updating finalInfo #506

Open sg777 opened 2 years ago

sg777 commented 2 years ago

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
    ]
}