Bitcoin Forum

Economy => Gambling => Topic started by: Fabian1291 on September 08, 2013, 03:45:34 AM



Title: Martingale prediction script for sites like just-dice
Post by: Fabian1291 on September 08, 2013, 03:45:34 AM
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 ;D
1EZhao5iqAtYTqXGKhsvRk8eBGraG1QCmx

Fabian.


Title: Re: Martingale prediction script for sites like just-dice
Post by: uoyeparannog on September 08, 2013, 10:06:18 AM
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 (http://bitchaos.com).
Anyway congratulations for doing something and sharing. Keep scripting!


Title: Re: Martingale prediction script for sites like just-dice
Post by: alexout on September 08, 2013, 01:04:21 PM
How do I run this simulation?


Title: Re: Martingale prediction script for sites like just-dice
Post by: monbux on September 08, 2013, 01:10:01 PM
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 (http://bitchaos.com).
Anyway congratulations for doing something and sharing. Keep scripting!

Cool site, I like it. 


Title: Re: Martingale prediction script for sites like just-dice
Post by: Fabian1291 on September 08, 2013, 02:06:19 PM
How do I run this simulation?

You have to have python installed then you have to call the script via
Code:
python <filename>
from a terminal.