BJ(6) SysV BJ(6)
NAME
bj - the game of blackjack
SYNOPSIS
/usr/games/bj
DESCRIPTION
bj is a serious attempt at simulating the dealer in the game of blackjack
(or twenty-one) as might be found in Reno. The following rules apply:
The bet is $2 every hand.
A player "natural" (black jack) pays $3. A dealer natural loses $2.
Simultaneous dealer and player naturals is a "push" (no money
exchange).
If the dealer has an ace up, you can make an "insurance" bet against
the chance of a dealer natural. If this bet is not taken, play
resumes as normal. If the bet is taken, it is a side bet where you
win $2 if the dealer has a natural, and lose $1 if the dealer does
not.
If dealt two cards of the same value, you can "double", that is,
play two hands, each with one of these cards. The bet also doubles
($2 on each hand).
If a dealt hand totals 10 or 11, you may "double down". This means
that you may double the bet ($2 to $4) and receive exactly one more
card on that hand.
Under normal play, you may "hit" (draw a card) as long as your total
isn't over twenty-one. If you "bust" (go over twenty-one), the
dealer wins the bet.
When you "stand" (decide not to hit), the dealer hits until
attaining a total of seventeen or more. If the dealer busts, you win
the bet.
If both you and the dealer stand, the one with the largest total
wins. A tie is a push.
The machine deals and keeps score. The following questions are asked at
appropriate times. You must answer each question by a y and a carriage
return for "yes", or just a carriage return for "no".
? (This means "do you want a hit?")
Insurance?
Double down?
Every time the deck is shuffled, the dealer so states and the "action"
(total bet) and "standing" (total won or lost) is printed. To exit, type
an interrupt and the action and standing are printed.