From: bknight@deakin.OZ.AU (Jarrod Hollingworth)
Newsgroups: rec.gambling
Subject: Suggestions for BJ-Sim
Date: 14 Apr 92 15:02:52 GMT
Organization: Deakin University, Victoria, Australia


  I have been working on a very comprehensive and flexible BJ simulator now
for QUITE SOME TIME, but while it runs ok, I am still developing extra
features, and re-re-re-checking it for bugs.

  Basically the sim plays BJ according to the rules/strategies specified by
the user, and outputs a number of statistics, the main one being the percent
(dis)advantage of the player(s). This can be used to check differences in
rules/strategies to find the best/better ones.

  What I would like to know from any rec.gamblers is what extra rule
variations/features/changes I may have missed, you know of, or would like to
see in it, as I plan to post the (copyrighted) source code (in portable c),
when I finish the next major version.

  There are currently many features incorporated, and are shown a config
file I use at the end of this article. Some features not (yet?) incorporated:
  - Early/Late surrender
  - Wierd Counting systems such as "Red 7's"
  - Special payouts such as 6 cards under 21

  Thanks.
  Jarrod Hollingworth.


# SAMPLE CONFIG FILE FOR BJ-SIM V2.4
# ----------------------------------
#
title Adelaide Casino rules, strategy adjustments & counting.
#
rounds 10000000                         play 10,000,000 rounds
decks 8                                 number of decks
insurance 2.0                           insurance payout
blackjack 1.5                           blackjack payout
penetration 66.7 5.0                    penetration (66.7% +/- 5%)
bet min 5                               table minimum bet
bet max 500                             table maximum bet
double 3 9 10 11                        3 legal double down totals, 9, 10, 11
das no                                  no double after split
split max 2                             max of 2 splits allowed
split aces 1                            split aces receive only 1 card
split legal any                         can split any pair
split mix no                            no mixed marriage split
#
dealer hard 17                          dealer stands on hard 17
dealer soft 17                          dealer stands on soft 17
dealer hole no                          dealer has no hole card
seeburn yes                             burn card is seen
bjboth push                             a push when both have bj
#
players 1                               number of players
name 1 Jarrod                           player 1's name
money 1 500.0                           player 1's bankroll
#
countname 1 High-Low                    player 1's count system name
count 1    -1 1 1 1 1 1 0 0 0 -1        player 1's count values (Ace,2,..,9,10)
initcount 1 0.0                         player 1's initial running count is 0
approx 1 0.5 0.5                        player 1 approximates the number of
#                                       decks left & true count to nearest 0.5
insure 1 +3.5                           player 1 takes insurance at a true
#                                       count >= +3.5
play 1 -2.0                             player 1 only plays if true-count >= -2
#
#           In the following tables: y = always, n = never,
#           +x : if tc >= +x, -x : if tc <= -x
#
splits 1                                player 1's split strategies
 A    y   y   y   y   y   y   y   y   y   y
 10   n   n   +6  +5  +4  n   n   n   n   n
 9    y   y   y   y   y   +3  y   y   n   +3
 8    y   y   y   y   y   y   y   y   y   y
 7    y   y   y   y   y   y   +5  n   n   n
 6    y   y   y   y   y   n   n   n   n   n
 5    n   n   n   n   n   n   n   n   n   n
 4    n   +6  +1  y   y   n   n   n   n   n
 3    -0  y   y   y   y   y   +4  n   n   n
 2    y   y   y   y   y   y   +5  n   n   n
end-splits
#
double 1                                player 1's double-down strategies
 11   y   y   y   y   y   y   y   y   y   +1
 10   y   y   y   y   y   y   y   y   +4  +4
 9    +1  -1  y   y   y   +3  n   n   n   n
end-double
#
stand soft 1                            player 1's soft hit/stand strategies
 21   all
 20   all
 19   all
 18   y   y   y   y   y   y   y   n   n   +1
 17   none
 16   none
 15   none
 14   none
 13   none
 12   none
end-stand
#
stand hard 1                            player 1's hard hit/stand strategies
 21   all
 20   all
 19   all
 18   all
 17   all
 16   y   y   y   y   y   n   n   +5  +0  n
 15   y   y   y   y   y   n   n   n   +4  n
 14   y   y   y   y   y   n   n   n   n   n
 13   -1  y   y   y   y   n   n   n   n   n
 12   +3  +2  -0  y   -1  n   n   n   n   n
end-stand
#
bets 1                                 player 1 bets:
 -1000    0  2.0                         2.0 units if -1000 <= true-count < 0
     0    2  5.0                         5.0   if 0 <= true-count < +2
     3    5 10.0                        10.0  if +3 <= true-count < +5
     5    8 20.0                        20.0  if +5 <= true-count < +8
     8   12 30.0                        30.0  if +8 <= true-count < +12
    12 1000 50.0                        50.0  if +12 <= true-count < +1000
end-bets
#

-------------------------------------------------------------------------------
| Jarrod A. Hollingworth       | "I hear and I forget,                        |
| bknight@rana.cc.deakin.OZ.AU |  I see and I remember,                       |
|  jarrod@eros.cc.deakin.OZ.AU |  I do and I understand." - Confucius 450 B.C.|
-------------------------------------------------------------------------------