Worth 0.97756 units per 100 hands on a 75% pen double deck.
Tags are -1, 1, 1, 1, 1, -2, -3, -2, 1, 1
starting count is -4*decks
Bet on any count of 2 or higher.
bet frequency = 0.14992
avg edge = 0.06521
ev per 100 hands = 0.97756
Source code:
[code]
onesuit = [1,2,3,4,5,6,7,8,9,10,10,10,10]
cleandeck = []
for suit in 'sdhc':
cleandeck += list(zip(onesuit,suit*13))
numdecks = 2
pen = 26 + 1
tags = [None,-1,1,1,1,1,-2,-3,-2,1,1]
startcount = -4 * numdecks
triggercount = 2
numrounds = 1000000
import random
import collections
import pprint
payoffs = [-1,100,50,30,10,3,2,2]
sumpayoffs = collections.defaultdict(float)
sumhands = collections.defaultdict(int)
ev = {}
def cardadd(*cards):
s = sum(cards)
if s <= 11 and 1 in cards:
s +=10
return s
for i in range(numrounds):
shoe = cleandeck*2
random.shuffle(shoe)
shoe = shoe[:-pen-1]
count = startcount
while len(shoe)>=3:
pc1 = shoe.pop()
upcard = shoe.pop()
pc2 = shoe.pop()
issuited = len(set(pc1[1]+pc2[1]+upcard[1]))==1
pc1 = pc1[0]
upcard = upcard[0]
pc2 = pc2[0]
total = cardadd(pc1,pc2,upcard)
payoff = -1
if total == 21:
ranks = set([pc1,pc2,upcard])
if ranks == set([7]):
if issuited:
payoff = payoffs[0]
else:
payoff = payoffs[2]
elif ranks == set([6,7,8]):
if issuited:
payoff = payoffs[1]
else:
payoff = payoffs[3]
elif issuited:
payoff = payoffs[4]
else:
payoff = payoffs[5]
elif total == 20:
payoff = payoffs[6]
elif total == 19:
payoff = payoffs[7]
sumpayoffs[count] += payoff
sumhands[count] += 1
count += tags[pc1] + tags[pc2] + tags[upcard]
for x in sumhands.keys():
ev[x] = sumpayoffs[x] / sumhands[x]
totalhands = sum(sumhands.values())
overallhouseedge = sum(sumpayoffs.values()) / totalhands
handsplayed = sum(sumhands[x] for x in sumhands if x>=triggercount)
frequencyplayed = float(handsplayed)/totalhands
sumpayoffsplayed = sum(sumpayoffs[x] for x in sumpayoffs if x>=triggercount)
evplayed = float(sumpayoffsplayed) / handsplayed
evper100 = 100*frequencyplayed*evplayed
pprint.pprint(ev)
print('decks = %s,pen = %s' % (numdecks, pen))
print('pay table = %s' % payoffs)
print('HE = %.5f' % overallhouseedge)
print('tags = %s' % tags)
print('initial count = %s' % startcount)
print('trigger count = %s' % triggercount)
print('bet frequency = %.5f' % frequencyplayed)
print('avg edge = %.5f' % evplayed)
print('ev per 100 hands = %.5f' % evper100)
[/code]
Tags are -1, 1, 1, 1, 1, -2, -3, -2, 1, 1
starting count is -4*decks
Bet on any count of 2 or higher.
bet frequency = 0.14992
avg edge = 0.06521
ev per 100 hands = 0.97756
Source code:
[code]
onesuit = [1,2,3,4,5,6,7,8,9,10,10,10,10]
cleandeck = []
for suit in 'sdhc':
cleandeck += list(zip(onesuit,suit*13))
numdecks = 2
pen = 26 + 1
tags = [None,-1,1,1,1,1,-2,-3,-2,1,1]
startcount = -4 * numdecks
triggercount = 2
numrounds = 1000000
import random
import collections
import pprint
payoffs = [-1,100,50,30,10,3,2,2]
sumpayoffs = collections.defaultdict(float)
sumhands = collections.defaultdict(int)
ev = {}
def cardadd(*cards):
s = sum(cards)
if s <= 11 and 1 in cards:
s +=10
return s
for i in range(numrounds):
shoe = cleandeck*2
random.shuffle(shoe)
shoe = shoe[:-pen-1]
count = startcount
while len(shoe)>=3:
pc1 = shoe.pop()
upcard = shoe.pop()
pc2 = shoe.pop()
issuited = len(set(pc1[1]+pc2[1]+upcard[1]))==1
pc1 = pc1[0]
upcard = upcard[0]
pc2 = pc2[0]
total = cardadd(pc1,pc2,upcard)
payoff = -1
if total == 21:
ranks = set([pc1,pc2,upcard])
if ranks == set([7]):
if issuited:
payoff = payoffs[0]
else:
payoff = payoffs[2]
elif ranks == set([6,7,8]):
if issuited:
payoff = payoffs[1]
else:
payoff = payoffs[3]
elif issuited:
payoff = payoffs[4]
else:
payoff = payoffs[5]
elif total == 20:
payoff = payoffs[6]
elif total == 19:
payoff = payoffs[7]
sumpayoffs[count] += payoff
sumhands[count] += 1
count += tags[pc1] + tags[pc2] + tags[upcard]
for x in sumhands.keys():
ev[x] = sumpayoffs[x] / sumhands[x]
totalhands = sum(sumhands.values())
overallhouseedge = sum(sumpayoffs.values()) / totalhands
handsplayed = sum(sumhands[x] for x in sumhands if x>=triggercount)
frequencyplayed = float(handsplayed)/totalhands
sumpayoffsplayed = sum(sumpayoffs[x] for x in sumpayoffs if x>=triggercount)
evplayed = float(sumpayoffsplayed) / handsplayed
evper100 = 100*frequencyplayed*evplayed
pprint.pprint(ev)
print('decks = %s,pen = %s' % (numdecks, pen))
print('pay table = %s' % payoffs)
print('HE = %.5f' % overallhouseedge)
print('tags = %s' % tags)
print('initial count = %s' % startcount)
print('trigger count = %s' % triggercount)
print('bet frequency = %.5f' % frequencyplayed)
print('avg edge = %.5f' % evplayed)
print('ev per 100 hands = %.5f' % evper100)
[/code]

