Poker Hand Rank Classifier
Classify exactly five distinct standard-deck cards and lexicographic tie-break ranks, including wheel ace-low straight; no wild cards or seven-card best-hand inference.
Description
Five-card poker ranks combine a category with category-specific tiebreak values.
Five-card poker ranks combine a category with category-specific tiebreak values. An ace can be low only in the A2345 straight.1
Enter five distinct two-character cards, ranks 2–9/T/J/Q/K/A and suitsC/D/H/S. Group ranks and test flush/straight; a wheel has high rank 5. Return category and descending comparison values, using only the high rank for straights.
When to use Poker Hand Rank Classifier
Use Poker Hand Rank Classifier when you need to evaluate the supplied records under the calculation and evidence rules below. No seven-card best-hand search, wild cards or opponent comparison is performed.
Prepare the supplied game state, observations and explicit variant settings. Follow the card, board, coordinate and state conventions in the calculation rules.
How to use Poker Hand Rank Classifier and understand its results
- Prepare the supplied game state, observations and explicit variant settings. Follow the card, board, coordinate and state conventions in the calculation rules.
- Enter fiveCardHand using the field table and calculation rules, then run the tool.
- Read handCategory, categoryRank, tieBreakRanks. The explanation below defines the units, signs, ordering and any flags or placeholder values.
- If the tool reports an input issue, correct the values and run it again. Apply the stated assumptions when interpreting a successfully returned result.
| Input field | Meaning | Value type; see rules below | Requirement |
|---|---|---|---|
| fiveCardHand | Five card hand | list of string | Required |
Enter five distinct two-character cards, ranks 2–9/T/J/Q/K/A and suitsC/D/H/S. Group ranks and test flush/straight; a wheel has high rank 5. Return category and descending comparison values, using only the high rank for straights.
category0…8=high card,pair,two pairs,trips,straight,flush,full house,quads,straight flush Units, indexing, boundary conditions and exceptional cases are defined in the calculation rules above.
| Output field | Meaning | Value type |
|---|---|---|
| handCategory | Hand category | string |
| categoryRank | Category rank | number |
| tieBreakRanks | Tie break ranks | list of number |
{
"input": {
"fiveCardHand": [
"AS",
"2S",
"3S",
"4S",
"5S"
]
},
"output": {
"handCategory": "straight-flush",
"categoryRank": 8,
"tieBreakRanks": [
5
]
}
} Limitations and assumptions
No seven-card best-hand search, wild cards or opponent comparison is performed.
Numeric inputs, where present, must be finite. Follow the calculation-specific rules for overflow, underflow and exceptional cases. Numeric lists are limited to 10,000 entries; string lists to 128 strings of at most 128 characters each. The rules above may impose smaller limits. Missing required fields, extra fields, wrong value types and violations of the calculation rules are input errors.
Alternative or Complementary methods
Use Cribbage Hand Scorer (15s/Pairs/Runs): Cribbage hand scoring combines fifteens, pairs, longest runs, flush and nobs. Starter-jack heels is a separate award. For a complementary task, use Bridge HCP High Card Points: Bridge high-card points value honors in a 13-card hand. Suit shape is a separate useful description.
References
-
Poker Hand Rank Classifier — tool.io
Similar or alternative tools
- Cribbage Hand Scorer (15s/Pairs/Runs)
Cribbage hand scoring combines fifteens, pairs, longest runs, flush and nobs. Starter-jack heels is a separate award.
- Bridge HCP High Card Points
Bridge high-card points value honors in a 13-card hand. Suit shape is a separate useful description.