Post
Topic
Board Gambling
Topic OP
[FREE]Dice Calculator ~ Calculate your odds ~ Level up your game !
by
christopherkal
on 23/07/2015, 00:10:27 UTC
Hello , i am currently developing a tool to use with primedice that will (Hopefully) calculate a lot of things such as EV etc , i understand primedice's EV is always negative due to the 0.5% edge but i'll do my best.


This is it right now:
http://i.imgur.com/c3FHIli.png

What more would you like to see?
Should i sell it eventually or distribute it free?

The program is developed using Python but i will port it to C# later for easy use.

Thanks Smiley



Basic Source C#:
Quote
 
            Console.WriteLine("Input the Chance of Losing 0-100% ");
            string strchance = Console.ReadLine();
            float chance = float.Parse(strchance);
            Console.WriteLine("Input tries ");
            string strtries = Console.ReadLine();
            int tries = int.Parse(strtries);
            Console.WriteLine("Input Amount of Bitcoins you wish to gamble ");
            string strbtc = Console.ReadLine();
            float btc = float.Parse(strbtc);
            Console.WriteLine("Input House Edge 0-100% ");
            string strhouse_edge = Console.ReadLine();

            float house_edge = float.Parse(strhouse_edge);
            
            chance = chance / 100;
            house_edge = chance / 100;            

            float EV = (float)Math.Pow(chance, tries);
            float total = 0.0f;
            float lost = 0;
            for (int i = 0; i < tries; i++)
            {
                lost = btc * 2;
                total += (float)lost;
            }
            Console.WriteLine("The chance of a {0} losing streak is {1}%", tries, EV * 100);
            Console.WriteLine("That means {0} in 100 tries or {1} in 1000 tries", EV * 100, EV * 1000);
            Console.WriteLine("[MartinGale]Amount of BTC that has to be gambled to win back from the loss spree {0}", total);



If u wish to donate : 1Pc5wLrQjYQqLpQWZxyCjNpacsqSECuu1

More work will be done in the upcoming days.



EDIT: Minor update added icon too Smiley