Texas Hold Em

GRATUIT
Par vincy | Mise à jour un mese fa | Entertainment
Popularité

6.5 / 10

Latence

93ms

Niveau de service

100%

Health Check

N/A

Retour à toutes les discussions

Not accurately reporting hands

Rapid account: Mduleone
mduleone
8 anni fa

Based off of the data returned by this api, the winning hands were calculated incorrectly. Player 1’s winning hand should have been an ace high straight, instead it’s listed as a king high straight. The api correctly listed Player 1 as the winner, but lists the wrong hand.
Endpoint I hit: https://poker.p.mashape.com/index.php?players=5
Response:
{
“player_cards”: {
“1”: [
“Qs”,
“Kh”
],
“2”: [
“2d”,
“2c”
],
“3”: [
“Ks”,
“4s”
],
“4”: [
“6h”,
“5h”
],
“5”: [
“5c”,
“As”
]
},
“showdown”: [
“9h”,
“Jc”,
“Ac”,
“Td”,
“7s”
],
“winning_hands”: {
“1”: [
“Kh”,
“Qs”,
“Jc”,
“Td”,
“9h”
],
“2”: [
“2d”,
“2c”,
“Ac”,
“Jc”,
“Td”
],
“3”: [
“Ac”,
“Ks”,
“Jc”,
“Td”,
“9h”
],
“4”: [
“Ac”,
“Jc”,
“Td”,
“9h”,
“7s”
],
“5”: [
“As”,
“Ac”,
“Jc”,
“Td”,
“9h”
]
},
“winners”: [
1
]
}

Rapid account: Mduleone
mduleone Commented 8 anni fa

Happy to help! I’d be interested in checking out the source if it’s up on GitHub! 😃

Rapid account: Bdpizzle
bdpizzle Commented 8 anni fa

Great stuff! This is very helpful. Thank you!

Rapid account: Mduleone
mduleone Commented 8 anni fa

None that I’ve noticed, but I haven’t looked for any. If you want, check out how I implemented something similar in Node: https://github.com/mduleone/nodePoker/. It will determine a winner in Hold’em, given a board and hands, but the rules of poker are pretty consistent, and they’re all implemented in poker.js

Rapid account: Bdpizzle
bdpizzle Commented 8 anni fa

any other bugs found? im going to be implementing this soon. I looked up hold em rules and i guess ace can be either worth 1 or 14? im hoping this is just a small mistake and the rest is legit.

Participez à la discussion - ajoutez un commentaire ci-dessous:

Connectez-vous / Inscrivez-vous pour publier de nouveaux commentaires