Hi,
I know that you can get a loosing strike and hit your bankroll limit, but somehow I feel safe playing martingale.
I made this script 10 minutes ago, since in dice you don't always need to double after a loss, it depends of
what the payout is.
def martingale(current_bet, payout):
lost = 0
x = 1
while True:
lost = lost + current_bet
print "draw %s" %(x)
print "lost %s" %lost
while(current_bet*payout<=lost):
current_bet = current_bet+1
print "next bet : %s in order to win %s for a profit of %s" %(current_bet, current_bet*payout, current_bet*payout-lost)
x = x + 1
user_choice = raw_input("continue (c) / reset (r) : ")
print "\n"
if user_choice == "r":
return
while True:
print "================================================================"
print "==================- dice martingale calculator -================"
print "================================================================"
current_bet = raw_input("initial_bet : ")
payout = raw_input("payout : ")
martingale(int(current_bet), int(payout))
print "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
print "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
Do what you want with it.
How to use (for windows, if you use linux you'r probably a techie anyway) :
-install python 2.7 :
https://www.python.org/downloads/release/python-2710/-
create a new environment variable called
PYTHON_HOME pointing to
C:\Python27 (or wherever you installed it)
-add this to the
PATH environment variable
;%PYTHON_HOME%;%PYTHON_HOME%\Scripts-create a script.py and open it with notepad, paste the script inside
-shift plus right clic in the folder where the script is and select open a cmd windows here
-type : nameOfScript.py and press enter
Explanation :
1/ you installed python in order to run the script
2/ creating this environment variable allow you to just type the name of the script in the command line instead of "C:\Python27\python.exe nameOfTheScript.py"
the script begin and it should be user friendly enought