Texas Hold Em

免费
通过 vincy | 已更新 एक महीने पहले | Entertainment
人气

6.5 / 10

延迟

93ms

服务等级

100%

Health Check

N/A

返回所有讨论

Not accurately reporting hands

Rapid account: Mduleone
mduleone
8 years ago

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 years ago

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

Rapid account: Bdpizzle
bdpizzle Commented 8 years ago

Great stuff! This is very helpful. Thank you!

Rapid account: Mduleone
mduleone Commented 8 years ago

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 years ago

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.

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论