예제 #1
0
 public static bool IsGameMoneyOvered(User user)
 {
     if (!MoneyLogic.IsMoneyOnBorder(user))
     {
         return(true);
     }
     return(false);
 }
예제 #2
0
        public void StartTheGame()
        {
            CreatePlayers();
            _preparations.StartCreates();
            Communication.LineToSeparate();
            Communication.MoneyYouHave(_human);
            MoneyLogic.CheckGoal(_human);

            OneRound();
        }
예제 #3
0
        public void OneRound()
        {
            Communication.LineToSeparate();
            MoneyLogic.CheckBet(_human);

            _preparations.CardToHand(_human);
            if (_preparations.MainEvent(_human))
            {
                MoneyOvered();
                return;
            }

            if (!_preparations.MainEvent(_pc))
            {
                WinnerByPoints();
            }
            MoneyOvered();
        }
예제 #4
0
 public static void PointsToWinner(User userWinner)
 {
     userWinner.Wins++;
     MoneyLogic.CalculateMoney(userWinner);
 }