home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / games / volume6 / bj2 / bj.doc < prev    next >
Text File  |  1989-07-06  |  11KB  |  223 lines

  1.             B.J. - Las Vegas Blackjack, Version 1.0
  2.             by Nathan Glasser
  3.             nathan@brokaw.lcs.mit.edu (internet)
  4.             nathan@mit-eddie.uucp (usenet)
  5.  
  6.             April, 1989
  7. ------------------------------------------------------------------------------
  8. Copyright 1989 by Nathan Glasser.
  9. You may feel free to distribute this program in its current form.
  10. Please do not remove this copyright information.
  11. ==============================================================================
  12. Bj is a Blackjack game (single player) which implements almost every
  13. feature to be found at Blackjack tables in various casinos in Las
  14. Vegas.
  15.  
  16. There are a large number of options for controlling these features;
  17. by using particular sets of these options you can emulate the rules
  18. of your favorite casino, or you can simply use the default settings.
  19.  
  20. At the end of this document is a description of what Blackjack is,
  21. in case you're unfamiliar.
  22.  
  23. Please send any comments or bug reports to me at one of the above e-mail
  24. addresses.
  25. ==============================================================================
  26. What does bj do that other Blackjack games may not do?
  27.  
  28. Bj lets the player specify the number of decks to use for the game,
  29. specify the point at which they are reshuffled, and provides a visual
  30. display of how much of the deck remains during play. Bj actually
  31. arranges the cards before play so that players who wish to do so may
  32. attempt to "count cards" to increase their chances of winning. As in
  33. casinos, the top card of the deck is "burned" immediately after
  34. shuffling; these cards may be optionally displayed.
  35.  
  36. Bj allows the player to specify some of the rules under which the
  37. dealer plays, to allow for the variations between casinos. Bj will
  38. optionally force the dealer to hit on soft 17, and optionally to
  39. check to check for Blackjack when a "ten" (ten or picture card) is
  40. showing. (Checking or not checking for Blackjack on tens does not
  41. actually change the player's chance of winning. If the dealer does
  42. not check on tens, and a player splits and/or doubles down with a ten
  43. showing, if it turns out that dealer had Blackjack, any additional
  44. money above the original bet is returned to the player.)
  45.  
  46. Bj allows the player to specify the minimum bet he may place, so that,
  47. as at a casion, he can only reduce his bet so much and stay in the game.
  48. Card counters will thus not be able to "cheat" by betting less than
  49. the minimum. The default bet presented to the player at the start of
  50. each hand is the same as his previous bet. The default bet at the
  51. start of the game will be either 1/100 of his starting bankroll, or
  52. the table minimum, whichever is larger. The player's starting bankroll
  53. may be specified.
  54.  
  55. Bj allows the player to specify some of the options which will be
  56. available to him at various times in play. Bj will optionally let the
  57. player double down after splitting, and optionally let the player
  58. resplit (split more than once). If resplitting is selected, there is
  59. no limit to the number of times a player may split (except that there
  60. are only so many of the same card in play). Bj always lets the player
  61. double down on two cards (when appropriate) without restriction on
  62. the total of the two cards.
  63.  
  64. Bj optionally supports "late surrender". Late surrender is a
  65. little-known option supported at some major casinos in which you are
  66. permitted to concede the hand and surrender only half of your bet,
  67. but only when you have just your original two cards. If you have hit
  68. or split already, you cannot surrender.
  69.  
  70. Bj includes a number of aliases and batch files for running bj with
  71. options options appropriate to specific casinos.
  72.  
  73. Bj does not support (at least in this version):
  74.  
  75.   Resplitting aces: It is true at almost all casinos that when you
  76.   split aces, you get exactly one new card to go with each ace, and
  77.   your turn is over.
  78.  
  79.   "6-card Charleys": This is an option that occurs very rarely at casinos.
  80.  
  81.   Doubling down with more than 2 cards: This is an option that occurs
  82.   very rarely at casinos.
  83. ==============================================================================
  84. The usage of bj is:
  85.  
  86. bj [-b<num>] [-m<num>] [-n<num>] [-p<num>] [-t<bit>]
  87.    [-h<bit>] [-d<bit>] [-r<bit>] [-l<bit>] [-c<bit>]
  88.    [-s<bit>]
  89.  
  90. Where <num> appears you should substitute an appropriate number.
  91. Where <bit> appears you should enter a bit, 0 or 1, to turn the option
  92. off or on.
  93.  
  94. The command line options and their meanings:
  95.  
  96. -b: Specify starting bankroll.
  97. -m: Specify minimum bet allowed.
  98. -n: Specify number of decks.
  99. -p: Specify percentage of cards after which to reshuffle.
  100. -t: Whether dealer checks for Blackjack on tens.
  101. -h: Whether dealer hits on soft 17's.
  102. -d: Whether player can double down after splitting.
  103. -r: Whether player can split more than once.
  104. -l: Whether player can late surrender on two cards.
  105. -c: Whether to show all burned cards.
  106. -s: Whether to show the portion of the deck remaining.
  107.  
  108. If an option is not specified, its default value is used. To
  109. determine the defaults for these options as compiled for your
  110. version, simply run bj with a meaningless argument to receive a usage
  111. message with all the defaults displayed.
  112.  
  113.  
  114. When playing the game, you'll be asked to enter your bet. Enter your
  115. new bet, or hit return to get the default shown.
  116.  
  117. When the hand has been dealt, simply pick the letter corresponding to
  118. the option displayed you wish to use. Only options legally available
  119. to you by the rules of the game and those selected with the command
  120. line options will be displayed.
  121.  
  122. When the dealer has an ace showing, you'll be asked if you wish
  123. to buy insurance. Simply hit return if you wish to select the
  124. default answer ("No"). Otherwise enter y.
  125.  
  126. The game does not end when you reach $0; you can always get more
  127. money from your credit card. Use ^C (or on Unix, your interrupt
  128. character) to end the game when you're done.
  129. ==============================================================================
  130. Thanks to extensive, expensive research done by #Ron (ronnie@eddie.mit.edu,
  131. ronnie@mit-eddie.uucp), I've got rules for a number of Las Vegas casinos.
  132.  
  133. Currently I've got rules for the Barbary Coast, Bally's, Caesar's Palace,
  134. the Flamingo Hilton, the Horseshoe, and the Stardust.
  135.  
  136. If you're on unix, you can use the aliases in the file bjalias.txt to
  137. to run bj with the appropriate options for each of these casinos.
  138. Simply run the command "source alias.txt" to set up the aliases.
  139.  
  140. If you're on ms-dos, you can use the batch files (*.bat). There's one
  141. batch file for each casino.
  142.  
  143. In either case, all you have to do to use a given casino's rules is
  144. type the name of the casino (or whatever abbreviation was actually
  145. picked). E.g. to use the Barbary Coast rules, simply run "barbary".
  146.  
  147. Note that the command line options -b (bankroll), -c (burned cards),
  148. and -s (deck remaining) are not specified via the aliases and batch
  149. files. These have nothing to do with the casinos, but rather with
  150. what the player wants to do. If you wish, any or all of these options
  151. may be used with the predefined commands. E.g. barbary -b50 -c0 -s1.
  152. ==============================================================================
  153. Blackjack rules summary:
  154.  
  155. In Blackjack, also known as 21, the player(s) compete with the dealer
  156. to get higher totals of cards without going over 21. 
  157.  
  158. The values of the cards are:
  159.   Tens and picture cards = 10
  160.   Aces = 1 or 11
  161.   Spot cards = face value.
  162.  
  163. The player and dealer are each dealt two cards, and the first of the
  164. dealer's cards is visible (the up card). Based on what cards the
  165. player holds, and what dealer's up card is, the player has to make a
  166. decision among several options as to what he wants to do to try to
  167. win.
  168.  
  169. The options the player has are:
  170.   Stand: Don't take any more cards on this hand.
  171.   Hit: Take one more card on this hand. If you're total goes above 21,
  172.     you've "busted", and this hand has lost, no matter what happens to the
  173.     dealer.
  174.   Double Down: If you've got only two cards in this hand, you double
  175.     your bet and take exactly one more card. You may bust, as with
  176.     hitting normally. You may or may not be able to double down after
  177.     splitting (see below), depending on casino rules.
  178.   Split: If your hands consists of two cards with exactly the same
  179.     rank, (e.g. two 5's, two J's, two A's) you may split the hand
  180.     into two hands, each with one of the two cards you held, plus
  181.     a new one dealt to you. Your bet is doubled, with one bet applying to
  182.     each hand. Each hand is now independent and is won or lost separately.
  183.     In the case where the cards split were aces, each ace is given
  184.     a new card, and the play stops here. No further hitting, splitting,
  185.     or doubling down is permitted. There may be restrictions to
  186.     further splitting and doubling down, depending on casino rules.
  187.     Late surrendering (see below) is not permitted after splitting.
  188.   Late Surrender: When you have not hit or split yet, i.e. still have
  189.     your original two cards, you may concede the hand, surrendering
  190.     only half your bet, rather than playing the hand out and possibly
  191.     losing your entire bet. Some casinos do not allow this at all.
  192.  
  193. (Note: a card combination containing an ace in which the score can
  194. be one of two because the ace is worth either 1 or 11, is known as "soft".
  195. Thus the cards A 2 2 would be a soft 15.)
  196.  
  197. After the player(s) have finished their hands, the dealer plays by
  198. following a predetermined algorithm. The dealer turns over the down
  199. card. He then continues to hit until his total becomes 17 or higher.
  200. If the dealer busts, than all player hands which have not busted win.
  201. If a player hand and the dealer have not busted, whichever one has
  202. the higher score wins. If it is a tie, this is known as a push, and
  203. the player's bet is returned. If the player wins, the payoff is 1:1.
  204. (In some casinos, the dealer must hit if the total is a soft 17.)
  205.  
  206. Exception: a two-card combination totalling 21, that is, an ace and a
  207. ten or picture card, is worth more than any other 21 combination.
  208. This is known as a Blackjack. If the player get a Blackjack, and the
  209. dealer doesn't, the player wins, and in addition, gets paid 3:2. If
  210. the dealer gets Blackjack, there's no way for the player to win,
  211. though it will still be a push if the player also gets a Blackjack.
  212. (Note that if you split, and get a "Blackjack", this is not a
  213. Blackjack. This applies only two your original two cards.)
  214.  
  215. If the dealer's down card is an ace, then all players are immediately
  216. given the option to buy insurance. This means that the player pays
  217. out an additional 50% of his original bet. Whether insurance is
  218. bought or not, the dealer immediately checks to see whether he has
  219. Blackjack. If dealer has Blackjack, all players lose their original
  220. bets, but those with insurance get their insurance bet back, and get
  221. paid off at 2:1 for this bet. If the dealer does not have Blackjack,
  222. those players who bought insurance lose their insurance bets.
  223.