Holdem Master
Holdem Master · Actions GPT
Texas Hold'em Poker Calculator API
API to calculate odds, potential wins, and outcomes in a Texas Hold'em poker game based on players' cards and community cards.
GET /calculateCalculate poker game outcomes
Schéma original API
{
"openapi": "3.0.0",
"info": {
"title": "Texas Hold'em Poker Calculator API",
"version": "1.0.0",
"description": "API to calculate odds, potential wins, and outcomes in a Texas Hold'em poker game based on players' cards and community cards."
},
"servers": [
{
"url": "https://pokeroddscalc.zuozhujyy.repl.co/",
"description": "Poker Game Calculation Server"
}
],
"paths": {
"/calculate": {
"get": {
"summary": "Calculate poker game outcomes",
"operationId": "calculatePoker",
"parameters": [
{
"name": "num_player",
"in": "query",
"required": true,
"description": "Number of players in the game",
"schema": {
"type": "integer"
}
},
{
"name": "deck_type",
"in": "query",
"description": "Type of deck used in the game",
"schema": {
"type": "string"
}
},
{
"name": "players_cards",
"in": "query",
"description": "Cards held by each player, comma-separated (e.g., 5d,8c)",
"schema": {
"type": "array",
"items": {
"type": "string"
}
},
"style": "form",
"explode": false
},
{
"name": "community_cards",
"in": "query",
"description": "Community cards in the game",
"schema": {
"type": "array",
"items": {
"type": "string"
}
},
"style": "form",
"explode": false
}
],
"responses": {
"200": {
"description": "Successfully calculated poker game data",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CalculationResult"
}
}
}
},
"400": {
"description": "Invalid input"
}
}
}
}
},
"components": {
"schemas": {
"CalculationResult": {
"type": "object",
"properties": {
"win_draw_loss": {
"type": "object",
"additionalProperties": {
"type": "number",
"format": "float"
}
}
}
}
}
}
}