Texas Hold Em

GRATIS
Por vincy | Actualizada месяц назад | Entertainment
Popularidad

6.5 / 10

Latencia

93ms

Nivel de servicio

100%

Health Check

N/A

Volver a todas las conversaciones

Not accurately reporting hands

Rapid account: Mduleone
mduleone
8 лет назад

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 лет назад

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

Rapid account: Bdpizzle
bdpizzle Commented 8 лет назад

Great stuff! This is very helpful. Thank you!

Rapid account: Mduleone
mduleone Commented 8 лет назад

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 лет назад

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.

Únase a la conversación, añada un comentario a continuación:

Inicie sesió/Regístrese para publicar nuevos comentarios