Author

Topic: Martingale prediction script for sites like just-dice (Read 4363 times)

newbie
Activity: 3
Merit: 0
How do I run this simulation?

You have to have python installed then you have to call the script via
Code:
python
from a terminal.
legendary
Activity: 1736
Merit: 1029
Simulation is just... simulation. Run it 100 times - it'll return result A. Run next 100 times - hello, result B. Run 1000 times - result C! What to do now? Count average? Rather bad idea (just like using Martingale for longer run, lol).
Just use calculator.
Anyway congratulations for doing something and sharing. Keep scripting!

Cool site, I like it. 
full member
Activity: 257
Merit: 100
How do I run this simulation?
member
Activity: 72
Merit: 10
Drunk Lunatic
Simulation is just... simulation. Run it 100 times - it'll return result A. Run next 100 times - hello, result B. Run 1000 times - result C! What to do now? Count average? Rather bad idea (just like using Martingale for longer run, lol).
Just use calculator.
Anyway congratulations for doing something and sharing. Keep scripting!
newbie
Activity: 3
Merit: 0
Hi guys,

I wrote a little python script to simulate multiple games using the martingale strategy.

https://gist.github.com/anonymous/6478117

You can enter the number of games to simulate, the initial bankroll, the target bankroll, the initial bet, how many times to double your bet, the chance to win and the house edge (if you want to use the default values, just press enter after the prompt) -- after that you get a winning probability. You should be able to start it with:
Code:
python predict_martingale_v4.py

The output looks something like this:

http://fapeg.com/martingale_prediction.png

Feedback very welcome.

Donations also appreciated since I discovered just-dice before I did some martingale calculations Grin
1EZhao5iqAtYTqXGKhsvRk8eBGraG1QCmx

Fabian.
Jump to: