Пример #1
0
        public static void SimulateXCOMShots(int percentHit)
        {
            ISampler <int> uniformCoin = Samplers.UniformD20();

            Console.WriteLine("Uniform Sample:");
            SimulateXCOMShotsOnDie(uniformCoin, (100 - percentHit) / 5);

            ISampler <int> gamblersCoin = Samplers.GamblersD20();

            Console.WriteLine("Gambler's Sample:");
            SimulateXCOMShotsOnDie(gamblersCoin, (100 - percentHit) / 5);
        }