NAME

cribbage - cribbage on a terminal

SYNOPSIS

cribbage              # arrow keys if the terminal has them
cribbage --no-pick    # type the card numbers instead

DESCRIPTION

A front end and nothing else: the screen lives in Game::Cribbage::Terminal and the rules in Game::Cribbage::Board.

--pick chooses cards with the arrow keys and --no-pick types them. Left alone it picks when there is a terminal and Term::ReadKey is installed and types when there is not, so a game played down a pipe needs no option at all.

The terminal is put back the way it was on the way out, from INT, from TERM and after a die, because a program that leaves a terminal in cbreak leaves the shell unusable.

EXIT STATUS

0   you won, or you quit
1   you lost
2   a bad option

SEE ALSO

Game::Cribbage::Terminal, Game::Cribbage