コード例 #1
0
 public DiceButtonViewModel(int number, WinFuction win)
 {
     WinFuction      = win;
     Number          = number;
     Bet             = new BetPoco(number);
     BetClickCommand = new TsCommand(BetClickExecute);
 }
コード例 #2
0
ファイル: Dice.cs プロジェクト: momo16542/DiceGame
        public decimal DistributeBonus(int[] dicePoint, WinFuction winFuction, BetPoco bet)
        {
            decimal bonus = 0;

            if (winFuction.IsWin(dicePoint))
            {
                bonus  = winFuction.GetBonus(bet.Bets);
                bonus += bet.Bets;
            }
            return(bonus);
        }