public decimal OnWin(decimal money, int option = 0) { Console.WriteLine("You won!"); var diff = Payouts.ElevenToOne(money) - money; return(diff); }
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); }