Cribbage
Description
Cribbage is a terminal implementation of the classic card game. The objective is to reach the end of the board and optionally return to the start before your opponent. You may advance along the board depending on score earned both while playing cards in sequence with your opponent, or based on the value of the resulting four card hand after a full play. When playing in sequence, the total value of cards played must remain below or equal to 31. The last player capable of playing is able to ‘go’, and the sequence repeats until all cards are played.
The following items are worth points during play: Reaching a value of 31 points: 2 points A ‘GO’ when the opponent is unable to play: 1 point A total value of 15: 2 points A sequence of three cards: 2 points A pair of cards: 2 points Flush (e.g. all cards in hand of same suit): 2 points Jack of the same suite as the starter: 1 point
This version of cribbage, although it performs automatic counting during play, requires the player to manually compute the value of their hand after play. Errors in score entry are reported by the computer accordingly. If using the -e command-line argument, a more detailed explanation of the score error is provided.





