Ejemplo n.º 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;
            }
        }
Ejemplo n.º 2
0
 public ShitheadServiceTests()
 {
     _sut = new ShitheadService();
 }