Exemple #1
0
        public decimal OnWin(decimal money, int option)
        {
            decimal diff = 0;

            Console.WriteLine("You won!");
            if (option == 17)
            {
                diff += Payouts.SeventeenToOne(money) - money;
            }
            else if (option == 11)
            {
                diff += Payouts.ElevenToOne(money) - money;
            }

            else if (option == 8)
            {
                diff += Payouts.EightToOne(money) - money;
            }
            return(diff);
        }