Cribbbage Counter (1.0.0)

Download OpenAPI specification:Download

A REST API for all of your cribbage hand counting needs. Hand format is a comma separated list of 5 cards where:

  • each card consists of 2 characters: one for the card's rank, one for its suit (case insensitive)
  • ranks: 'A', '2', '3', '4', '5', '6', '7', '8', '9', 'T', 'J', 'Q', 'K'
  • suits: 'S', 'H', 'C', 'D'
  • the 5th card is the cut card

Test front end

score

Retrieves a hand's score

query Parameters
hand
Array of strings 5 items unique [ items 2 characters ]

An array of cards

isCrib
boolean
Default: false

Is this the crib hand (used for flushes)

Responses

explain

Retrieves a hand's score and all scoring card combinations

query Parameters
hand
Array of strings 5 items unique [ items 2 characters ]

An array of cards

isCrib
boolean
Default: false

Is this the crib hand (used for flushes)

Responses

Response samples

Content type
application/json
{
  • "points": [
    ],
  • "score": 0
}