Example #1
0
        public PlayerMyselfResponse(StatusEnum gameStatus, Player player)
        {
            if (player == null)
            {
                return;
            }

            Name         = player.Name;
            HandCards    = player.InHandCards.OrderBy(card => ShitheadService.GetNumericValue(ShitheadService.GetCardNumber(card))).ToList();
            DownCount    = player.DownCards.Count;
            OpenCards    = player.OpenCards;
            Status       = player.Status;
            LastDownCard = player.LastDownCard;

            if (gameStatus == StatusEnum.OUT)
            {
                DownCards = player.DownCards;
            }
        }
Example #2
0
 public ShitheadServiceTests()
 {
     _sut = new ShitheadService();
 }