Cribbage Hand Scorer (15s/Pairs/Runs)
Score complete cribbage hand/starter by exhaustive bounded subset fifteens and longest multiplicative runs, pairs, hand-versus-crib flush and nobs; starter-jack heels are reported separately, not added to hand points.
Description
Cribbage hand scoring combines fifteens, pairs, longest runs, flush and nobs.
Cribbage hand scoring combines fifteens, pairs, longest runs, flush and nobs. Starter-jack heels is a separate award.1
Enter four distinct hand cards and a distinct starter using uppercase two-character card syntax, plus crib flag. Enumerate fifteen subsets and longest consecutive runs; ace counts 1, faces 10. Award hand flush 4 outside crib or 5 with matching starter; crib requires all 5. Count a hand jack matching starter suit as nobs and report starter-jack heels 2 separately.
When to use Cribbage Hand Scorer (15s/Pairs/Runs)
Use Cribbage Hand Scorer (15s/Pairs/Runs) when you need to evaluate the supplied records under the calculation and evidence rules below. No pegging, discard strategy or heels addition to the hand total 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 Cribbage Hand Scorer (15s/Pairs/Runs) 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 fourHandCards, starterCard, isCrib using the field table and calculation rules, then run the tool.
- Read fifteensPoints, pairsPoints, runsPoints, flushPoints, nobsPoints, handTotalPoints, dealerHeelsPoints. 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 |
|---|---|---|---|
| fourHandCards | Four hand cards | list of string | Required |
| starterCard | Starter card | string | Required |
| isCrib | Is crib | boolean | Required |
Enter four distinct hand cards and a distinct starter using uppercase two-character card syntax, plus crib flag. Enumerate fifteen subsets and longest consecutive runs; ace counts 1, faces 10. Award hand flush 4 outside crib or 5 with matching starter; crib requires all 5. Count a hand jack matching starter suit as nobs and report starter-jack heels 2 separately.
handTotal=fifteens+pairs+runs+flush+nobs Units, indexing, boundary conditions and exceptional cases are defined in the calculation rules above.
| Output field | Meaning | Value type |
|---|---|---|
| fifteensPoints | Fifteens points | number |
| pairsPoints | Pairs points | number |
| runsPoints | Runs points | number |
| flushPoints | Flush points | number |
| nobsPoints | Nobs points | number |
| handTotalPoints | Hand total points | number |
| dealerHeelsPoints | Dealer heels points | number |
{
"input": {
"fourHandCards": [
"5H",
"5D",
"5C",
"JS"
],
"starterCard": "5S",
"isCrib": false
},
"output": {
"fifteensPoints": 16,
"pairsPoints": 12,
"runsPoints": 0,
"flushPoints": 0,
"nobsPoints": 1,
"handTotalPoints": 29,
"dealerHeelsPoints": 0
}
} Limitations and assumptions
No pegging, discard strategy or heels addition to the hand total 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. Extremely large text inputs are rejected. Missing required fields, extra fields, wrong value types and violations of the calculation rules are input errors.
Alternative or Complementary methods
Use Poker Hand Rank Classifier: Five-card poker ranks combine a category with category-specific tiebreak values. An ace can be low only in the A2345 straight. 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
-
Cribbage Hand Scorer (15s/Pairs/Runs) — tool.io
Similar or alternative tools
- Poker Hand Rank Classifier
Five-card poker ranks combine a category with category-specific tiebreak values. An ace can be low only in the A2345 straight.
- Bridge HCP High Card Points
Bridge high-card points value honors in a 13-card hand. Suit shape is a separate useful description.