Texas Hold Em

חינם
על ידי vincy | מְעוּדכָּן 한 달 전 | Entertainment
פּוֹפּוּלָרִיוּת

6.5 / 10

חֶבִיוֹן

93ms

רמת שירות

100%

Health Check

N/A

חזרה לכל הדיונים

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.

הצטרף לדיון - הוסף תגובה למטה:

התחבר / הירשם כדי לפרסם תגובות חדשות