#

SUD

Explanation of the extras field for reporting player_result in the game

  • View the extended parameter description based on the game (mg_id)

1. Dominoes (mg_id: 1537330258004504578)

Parameter Required Type Explanation
cards Yes string Remaining domino array, separated by commas
Example of extended parameters for dominoes
 "extras":"{"cards": "101,102"}"
 //Describe a card with three numbers, the hundredth digit is a fill digit, meaningless, the ten digit is the number of dots on the upper part of the domino, and the single digit is the number of dots on the lower part of the domino.

2. Ludo (mg_id: 1468180338417074177)

Parameter Required Type Explanation
color Yes int32 Player's chess color
steps Yes int32 Total steps of the player's chess
Example of extended parameters for Ludo
 "extras":"{"color": 1, "steps":580}"
 //color: 1 is red, 2 is green, 3 is yellow, 4 is blue;
 //steps: The total number of steps of all the player's chess pieces. When a chess piece reaches the end point, the number of steps is multiplied by 10. On the way, the number of steps is the number of steps. The total number of steps for a chess piece to reach the end point is 57;
 //For example, if steps is 580 and the game mode is 2 chess pieces, it means that one chess piece has reached the end point, and the other chess piece has moved forward 10 steps.

3. UMO (mg_id: 1472142559912517633)

Parameter Required Type Explanation
cards Yes string Player's remaining hand card array, separated by commas
Example of extended parameters for UMO
 "extras":"{"cards": "21,310,500"}"
 //Describe a card with three numbers:
 //The hundredth digit is the type of card: 0 is a number card, 1 is a block card, 2 is a flip card, 3 is a +2 card, 4 is a wildcard, 5 is a king card;
 //The ten digit is the color of the card: 0 is universal, 1 is red, 2 is yellow, 3 is blue, 4 is green;
 //The single digit is the number of points on the card: 0-9 points

4. Hello Friend (mg_id: 1490944230389182466)

Parameter Required Type Explanation
color Yes int32 Player's character color
levels Yes string Pass information, array, {current passed level, total level}
time Yes int32 Time to pass the level, in seconds
flowers Yes int32 Number of flowers sent to the player
poops Yes int32 Number of poops thrown at the player
Example of extended parameters for Hello Friend
  "extras":"{"color": 1,"levels": "1,4","time": 80,"flowers": 10,"poops": 1}"
 //color: 1 is pink, 2 is purple, 3 is green, 4 is blue, 5 is yellow, 6 is orange, the player has been sent 10 flowers and thrown 1 poop.
 //level is an array, the first number represents the current passed level, and the second number represents the total level
 //time represents the time to pass the level, in seconds

5. Texas Holdem (mg_id: 1494212349664686081 and 1557194155570024449)

Parameter Required Type Explanation
pokers Yes Array of poker objects Player's hand
public_pokers Yes Array of poker objects Public cards
card_type Yes int32 The final card type
  • poker
Parameter Required Type Explanation
number Yes int32 Number of points on the card
color Yes int32 Card color
Example of extended parameters for Texas Holdem
 "extras":"{
    "pokers": [{
        "number": 13,
        "color": 20
    }, {
        "number": 14,
        "color": 20
    }],
    "public_pokers": [{
        "number": 8,
        "color": 20
    }, {
        "number": 9,
        "color": 20
    }, {
        "number": 10,
        "color": 20
    }, {
        "number": 11,
        "color": 20
    }, {
        "number": 12,
        "color": 20
    }],
    "card_type": 10
}"

//pokers: represents the player's hand,
 //public_pokers: represents the public cards.
 //number: 2-13 represents the point of the poker, where 11 is J, 12 is Q, 13 is K, and 14 is A.
 //color: represents the suit of the poker, where 20 is spades, 30 is hearts, 40 is clubs, and 50 is diamonds.
 //card_type: represents the final card type of the player. 10 is Royal Flush, 9 is Straight Flush, 8 is Four of a Kind, 7 is Full House, 6 is Flush, 5 is Straight, 4 is Three of a Kind, 3 is Two Pairs, 2 is One Pair, 1 is High Card, and 0 is Folded.

Here is the translation of the third API document:

6. Draw and Guess (mg_id:1461228410184400899)

Parameter Required Type Description
flowers Yes int32 The number of flowers sent to the player
poops Yes int32 The number of poops thrown to the player
Draw and Guess Extended Parameter Example
 "extras":"{"flowers": 10,"poops": 1}"
 //This player has received 10 flowers and 1 poop

7. You Say I Guess (mg_id:1468434504892882946)

Parameter Required Type Description
flowers Yes int32 The number of flowers sent to the player
poops Yes int32 The number of poops thrown to the player
You Say I Guess Extended Parameter Example
 "extras":"{"flowers": 10,"poops": 1}"
 //This player has received 10 flowers and 1 poop

8. Bumper Blaster (mg_id:1461227817776713818)

Parameter Required Type Description
kill Yes int32 The number of players killed by the player
Bumper Blaster Extended Parameter Example
 "extras":"{"kill": 2}"
 //This player has killed 2 players in this game

9. Crazy Racing (mg_id:1649319572314173442)

Parameter Required Type Description
bet_chip Yes int32 array The player's betting information, in an array
bet_award Yes int32 The reward the player received
room_id Yes string The room id the player belonged to when placing the bet
Crazy Racing Extended Parameter Example
 "extras":"{"bet_chip": [20,40,0],"bet_award":80,"room_id":"12321"}"
 //This player bet 20 units on the first car, 40 units on the second car, and 0 units on the third car in this game. The player received a reward of 80 units, and the room id of this player is 12321

10. Slots/777 (mg_id:1641329941723648002)

Parameter Required Type Description
prizes Yes object array The result of the slots
win_times Yes int32 The multiple of the prize
income Yes int32 The income of the player
amount Yes int32 The amount the player bet
Slots/777 Extended Parameter Example
 "extras":"{"prizes":[{"id":2,"name ":"3 rows"},{"id":2,"name ":"3 rows"},{"id":5,"name ":"bell"}],"win_times":3.5,"income":"3500","amount":1000}"
 //The result of the slots for this player is 3 rows, 3 rows, and bell from left to right. The multiple of the prize is 3.5, the income is 3500, and the player bet 1000.
 //"id":1,"name ":"7";"id":2,"name ":"3 rows";"id":3,"name ":"2 rows";"id":4,"name ":"1 row";"id":5,"name ":"bell";"id":6,"name ":"grape";"id":7,"name ":"orange";"id":7,"name ":"cherry";

11.Who is spy (mg_id:1599672757949743105)

Parameter Required Type Description
role_id Yes int32 1 for civilian, 2 for undercover
Who is spy Extended Parameter Example
 "extras":"{"role_id": 1}"
 //This player is a civilian

12. Big Eater (mg_id: 1641330097642704898)

Parameter name Required Type Description
platform Yes int32 Prize
Big Eater Extended Parameter Example
"extras":"{"platform":2}"
//Sausage: 1, chicken leg: 2, shrimp: 3, meat: 4, tomato: 5, radish: 6, mushroom: 7, corn: 8, salad: 81, pizza: 80

13. Rich Man (mg_id: 1704460412809043970)

Parameter name Required Type Description
color Yes int32 Player's character color
Monopoly extended parameter example
"extras":"{"color": 1}"
//color: 1 green, 2 yellow, 3 red, 4 purple, 5 blue, 6 orange;

14. Barlotte (mg_id:1759471374694019074)

Parameter name Required Type Description
team_index Yes int32 Team index
flowers Yes int32 Number of flowers sent to the player
poops Yes int32 Number of buckets thrown to the player
Monopoly extended parameter example
"extras":"{"team_index":0, "flowers": 10,"poops": 1}"
//The player was given 10 flowers and 1 poop

15. Gobang Standard Edition (mg_id:1676069429630722049)

Parameter name Required Type Description
color Yes int32 Chess piece color: 1 black, 2 white
count Yes int32 Number of chess pieces
Gobang Standard Edition extended parameter example
"extras":"{"color": 1,"count": 5}"
//The color of the player's chess piece is black, and the number of chess pieces is 5 in the settlement

16. American 8-Ball (mg_id: 1739914495960793090)

Parameter name Required Type Description
win_reason No int32 Reason for winning (valid when is_win in player_result is 2):
0: Invalid value
1: I scored black 8, which means normal settlement;
2: The opponent committed 3 fouls and we won;
3: The opponent scored black 8 in the game and we won;
4: The opponent escaped and we won;
5: The game timed out and we won with more goals;
6: The opponent committed a foul in the black 8 stage and we won;
7: Forced to end the draw;
special_event No int32 Number of consecutive strokes: 2-7 The highest number of consecutive strokes of the opponent
pot_num_own Yes int32 Number of own goals scored
pot_num_opp Yes int32 Number of opponent goals scored
pot_num_none Yes int32 Number of goals scored that are not owned
turn_num No int32 Number of your turns
strike_turn_num No int32 Number of your strikes
American 8-Ball extended parameter example
"extras":"{"win_reason": 1,"special_event": 4,"pot_num_own":0,"pot_num_opp":0,"pot_num_none":0,"turn_num":0,"strike_turn_num":0}"
//The player won normally, and the highest number of consecutive shots in the game was 4 consecutive shots

17. Jump (mg_id:1680881367829176322)

Parameter name Required Type Description
hp Yes int32 Remaining health
Jump extended parameter example
"extras":"{"hp": 1}"
//The player's remaining health is 1 point

18. Matchpairs (mg_id:1734504890293981185 )

Parameter name Required Type Description
all_clear_time No int32 Clearance time (seconds)
Matchpairs extended parameter example
"extras":"{"all_clear_time": 30}"
//The player's clearing time is 30 seconds

19.Jackaroo (mg_id: 1848188045807976450 )

Parameter name Required Type Description
safe_zone_num No int32 Number of safe zones
strike_num No int32 Number of captured pieces
struck_num No int32 Number of captured pieces
turn_num No int32 Number of turns: how many times this user has made a move
total_step No int32 Total number of forward steps
marble_color No int32 Color of the piece held
Jackraoo extended parameter example
"extras":"{\"marble_color\":\"green\",\"safe_zone_num\":0,\"strike_num\":1,\"struck_num\":0,\"turn_num\":3,\"total_step\":15}"
//The player's chess piece is green, the number of chess pieces in the safe zone is 0, the number of chess pieces eaten is 0, the number of chess pieces eaten is 1, the number of shots is 3, and the total number of steps forward is 15

20. Cheater Tavern (mg_id:1866330051351728130 )

Parameter name Required Type Description
image No int32 Selected character
shots_num No int32 Number of bullets fired
Cheater Tavern Extended Parameter Example
"extras":"{"image": 0,"shots_num":2}"
//The character selected by the player is wolf, (0: ​​wolf, 1: fox, 2: rabbit), and 2 shots were fired at the end of the game

results matching ""

    No results matching ""