craps
PURPOSE
Plays craps.
SYNOPSIS
/usr/games/craps
DESCRIPTION
The craps game plays a form of the game of craps that is
played in Las Vegas. It simulates the roller while you
place bets. Bet with the roller by making a positive bet
or with the House by making a negative bet.
You start with a $2000 bankroll. When the program
prompts with "bet?", you may bet all or part of your
bankroll. If you bet more than your bankroll, the
program repeats the prompt until you make a legal bet.
Then the roller throws the dice. The payoff odds are one
to one. The player wins depending on whether the bet is
placed with the roller or with the House. The first roll
is the roll immediately following a bet.
The following rules apply. On the first roll, 7 or 11
wins for the roller; 2, 3, or 12 wins for the House; and
any other number becomes the point and you roll again
(the next rule then applies). On subsequent rolls, the
point wins for the roller; 7 wins for the House; and any
other number rolls again.
If you lose your bankroll, the House prompts "marker?",
offering to lend you an additional $2000. Accept the
loan by responding "y" or "yes". Any other response ends
the game. When you hold markers, the House reminds you
before a bet how many markers are outstanding. When you
have markers and your bankroll exceeds $2000, craps asks
"Repay marker?" If you want to repay part or all of your
loan, respond with "y" (or "yes"). If you have more than
one marker, craps asks you "How many?" If you respond
with a number greater than the number of markers you
hold, it repeats the prompt until you enter a valid
number. If you accumulate 10 markers (a total loan of
$20,000), craps tells you so and exits. If you accumu-
late a bankroll of more than $50,000 while holding
markers, the money owed is repaid automatically.
A bankroll of more than $100,000 breaks the bank, and
craps will prompt "New game?" To quit the game, press
INTERRUPT (Alt-Pause); craps displays whether you have
won, lost, or broken even and exits.