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

  1. Prepare the supplied game state, observations and explicit variant settings. Follow the card, board, coordinate and state conventions in the calculation rules.
  2. Enter fourHandCards, starterCard, isCrib using the field table and calculation rules, then run the tool.
  3. Read fifteensPoints, pairsPoints, runsPoints, flushPoints, nobsPoints, handTotalPoints, dealerHeelsPoints. The explanation below defines the units, signs, ordering and any flags or placeholder values.
  4. 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 fieldMeaningValue type; see rules belowRequirement
fourHandCardsFour hand cardslist of stringRequired
starterCardStarter cardstringRequired
isCribIs cribbooleanRequired

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 fieldMeaningValue type
fifteensPointsFifteens pointsnumber
pairsPointsPairs pointsnumber
runsPointsRuns pointsnumber
flushPointsFlush pointsnumber
nobsPointsNobs pointsnumber
handTotalPointsHand total pointsnumber
dealerHeelsPointsDealer heels pointsnumber
json
{
  "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

  1. 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.

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies