Exemplo n.º 1
0
        public void BettingCycle(List <PlayerModel> playerList, int roundNumber)
        {
            foreach (var p in playerList)
            {
                if (p is HumanPlayer)
                {
                    HumanPlayer hp = new HumanPlayer();
                    hp = (HumanPlayer)p;

                    if (hp.PlayerLoan != null)
                    {
                        LoanShark.AskForRepayment(hp);
                    }
                    else
                    {
                        LoanShark.OfferLoan(RoundCount, hp);
                    }
                }
                ExecuteTurn(p, roundNumber);
            }
        }