Texas Hold Em

무료
분류별 vincy | 업데이트됨 a month ago | 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.

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입