Pages:
Author

Topic: runMartingale - A martingale-based dice gambling simulator - page 2. (Read 1783 times)

hero member
Activity: 1005
Merit: 500
Actually many gamblers have tried this strategy, they know it and will never win over the house. Many ppl probably don't bother to try it or don't know how to start. Why not build a web page for us to try it if you have your own website? So it will not be costy for you.
sr. member
Activity: 392
Merit: 251
Nice! But in the end, we don't need a simulation to tell us that we WILL lose, some time or another  Roll Eyes
member
Activity: 78
Merit: 10
runMartingale

Nixtren presents an open-source martingale-based dice gambling simulator. With this script you can simulate (get final results) playing traditional martingale without wasting any real money.

Now available online. Click here to try it!

Usage: php runMartingale.php base_bet balance bets [rounds]

Quote
php runMartingale.php 0.0001 0.10 1000 (0.0001 base bet, 0.10 starting balance and 1000 bets)

Array
(
    [expectedBets] => 1000
    [betsTaken] => 265
    [balance] => 0.01100000
    [profit] => -0.08900000
    [lossStrike] => 10
)

php runMartingale.php 0.0001 0.10 1000 5 (0.0001 base bet, 0.10 starting balance and 5 rounds of 1000 bets each; the output is the profit made)

0.05340000
-0.04900000
0.04980000
-0.08730000
0.05250000

The script relies on PHP's mt_rand() function to perform generation of pseudorandom dice values.

I built this script because I wanted to perform some simulations before actually start to gamble with martingale. If you currently gamble and use the martingale strategy this script will help you get an idea if you will succeed or not. If you perform a simulation with enough bets (try a million bets) you will realize that you will always end losing no matter what. The only thing you don't know is when, so don't blame me for any losses.

The source-code for the script can be found on the official GitHub repository. Hack it, sell it, love it:
https://github.com/Nixtren/runMartingale (It seems the indentation of the script got messed up on GitHub, ignore that fact)

I know some of you are not very geeky people, so if you're running Windows and don't have PHP installed I have made a quick .zip for you to get started without trouble:
https://github.com/Nixtren/runMartingale/releases/tag/v0.0.1%2Bphp

If you find this useful, please consider buying me a cookie:
13vT1T1vsLHsJRnWjRVzSmAkzGNWsfQWRi

Enjoy folks Wink
Pages:
Jump to: