cribbage
Play the card game Cribbage
SYNOPSIS
cribbage [-eqrS] [-p peg] [player]
PARAMETERS
-e
Ask before dealing each hand
-q
Quiet mode; no score prompts
-r
Short deal: 6 cards per player
-S
Score by strokes, not pips
-p peg
Peg position for scoring (1-4, default 1)
DESCRIPTION
Cribbage is a classic two-player card game played with a standard 52-card deck and a cribbage board for scoring up to 121 points. The cribbage command provides a terminal-based version where you compete against the computer. You sit North, computer South. Gameplay involves dealing 6 or 9 cards (short or full), discarding 2 to the crib, pegging (playing cards summing under 31), and scoring hands for combinations like pairs, runs, and 15s.
Input moves textually: discard with d1 (first card), peg with card number or face value. Computer skill is basic; use options for variations. Score flashes on screen; first to 121 wins. Ideal for console gaming enthusiasts, preserving the strategy of flushing, his nob, and crib steals in ASCII art.
CAVEATS
Text interface requires familiarity with card notation; no mouse support. Computer opponent is predictable.
GAME CONTROLS
dN: discard Nth card (1-4).
N or face: peg card value (e.g., 5, J).
hand: score your hand; go: cannot play.
WIN CONDITION
First to peg 121 points wins. Track via board display.
HISTORY
Introduced in 4.3BSD (1986) as part of the BSD games suite; ported to Linux via bsdgames package. Evolved minimally, emphasizing traditional rules.
SEE ALSO
blackjack(6), gin(6), solitaire(6)


