Пример #1
0
        public async Task <bool> CheckPointsPlayer(CheckPointsPlayerGameView checkPointsPlayerGameView)
        {
            Hand hand = await _handRepository.GetHandByRoundAndPlayerId(checkPointsPlayerGameView.RoundId, checkPointsPlayerGameView.PlayerId);

            bool result = hand != null && hand.Summary < GameConstants.BLACKJACK;

            return(result);
        }
Пример #2
0
        public async Task <bool> CheckPointsPlayer([FromBody] CheckPointsPlayerGameView checkPointsPlayerGameView)
        {
            bool response = await _gameLogicService.CheckPointsPlayer(checkPointsPlayerGameView);

            return(response);
        }