Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought




craps(6) craps(6)
NAME craps - plays the game of craps SYNOPSIS craps DESCRIPTION craps is a form of the game of craps that is played in Las Vegas. The program simulates the roller, while you (the player) place bets. You may choose, at any time, to bet with the roller or with the House. A bet of a negative amount is taken as a bet with the House; any other bet is a bet with the roller. You start off with a bankroll of $2,000. The program prompts with: bet? The bet can be all or part of your bankroll. Any bet over the total bankroll is rejected and the program prompts with bet? until a proper bet is made. Once the bet is accepted, the roller throws the dice. The following rules apply (the player wins or loses depending on whether the bet is placed with the roller or with the House; the odds are even). The ``first'' roll is the roll immediately following a bet: 1. On the first roll: 7 or 11 wins for the roller; 2, 3, or 12 wins for the House; any other number is the point, roll again (Rule 2 applies). 2. On subsequent rolls: point roller wins; 7 House wins; any other number roll again. If you lose the entire bankroll, the House will offer to lend you an additional $2,000. The program will prompt: marker? A yes (or y) consummates the loan. Any other reply terminates the game. If you owe the House money, the House reminds you, before a bet is placed, of how many markers are outstanding. January 1992 1



craps(6) craps(6)
If, at any time, you have a bankroll exceeding $2,000 and an outstanding marker, the House asks: Repay marker? A reply of yes (or y) indicates your willingness to repay the loan. If only 1 marker is outstanding, it is immediately repaid. However, if more than 1 marker is outstanding, the House asks: How many? markers you would like to repay. If an invalid number is entered (or just a carriage return), an appropriate message is printed and the program will prompt with How many? until a valid number is entered. If you accumulate 10 markers (a total of $20,000 borrowed from the House), the program informs you of the situation and exits. Should your bankroll exceed $50,000 and you have outstanding markers, the total amount of money borrowed will automatically be repaid to the House. If you accumulate $100,000 or more, you will break the bank. The program then prompts: New game? to give the House a chance to win back its money. Any reply other than yes is considered to be a no (except in the case of bet? or How many?). To exit, send an interrupt. The program will indicate whether you won, lost, or broke even. NOTES The random number generator for the die numbers uses the seconds from the time of day. Depending on system usage, these numbers, at times, may seem strange but occurrences of this type in a real dice situation are not uncommon. FILES /usr/games/craps Executable file 2 January 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026