Changes for version 0.15 - 2026-09-13

  • FIXES: a card that makes exactly 31 is playable; cannot_play_a_card and next_play refused it.
  • FIXES: play_card returns an Error for a card not held or already played, instead of dying.
  • FIXES: Score missed a run of face cards given in ascending order.
  • FIXES: Score counted a flush the starter completed; a crib flush needs all five.
  • FIXES: identify_worst_cards returned all six cards when no four scored.
  • FIXES: his heels (a jack turned as the starter) pegs two, not one.
  • Deck->from_order installs a deck in a given order of card ids.

Modules

Cribbage game engine
top-level game orchestration object
deck of cards
error object returned by game operations
a single hands cycle within a round
a single play sequence (cards up to 31)
a card as it appears within a play sequence
score object for a single card play
a player in a cribbage game
a player's hand of cards within a hands cycle
a full scoring round of cribbage
running score tracker for a round
collection of rounds for a full cribbage game
hand scoring calculator