-
Notifications
You must be signed in to change notification settings - Fork 4
/
bet.py
36 lines (32 loc) · 938 Bytes
/
bet.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
class BetSpreadInterface:
def getBetSpreads(trueCount: int, tableMin: int) -> int:
pass
class spread1_6(BetSpreadInterface):
def __init__(self):
self.name = "1-6 Bet Spread"
# 1-6 Bet Spread
def getBetSpreads(self, trueCount, tableMin):
if trueCount < 0: return 100
if trueCount > 5: return 600
betSpread = {
0: 100,
1: 200,
2: 300,
3: 400,
4: 500,
5: 600
}
return betSpread.get(trueCount)
class spread1_50(BetSpreadInterface):
def __init__(self):
self.name = "1-50 Bet Spread"
def getBetSpreads(self, trueCount: int, tableMin: int):
if trueCount <= 0: return tableMin
if trueCount >= 5: return 500
betSpread = {
1: 100,
2: 200,
3: 300,
4: 400,
}
return betSpread.get(trueCount)