Exemplo n.º 1
0
        public bool GetIsRoundFinished(int gameId, IEnumerable <bool> flags)
        {
            int  roundId = GetCurrentRoundId(gameId);
            bool theEnd  = true;

            foreach (bool flag in flags)
            {
                if (flag)
                {
                    theEnd = false;
                }
            }
            int idDealer    = _roundPlayerRepository.GetPlayer(roundId, 8).Id;
            int scoreDealer = _cardService.GetScorePlayer(idDealer);

            if (scoreDealer > (int)Constants.MaxScore)
            {
                theEnd = true;
            }
            return(theEnd);
        }