Exemplo n.º 1
0
        public List <int> GetState()
        {
            this.PlayerHand.Sort();
            List <int> State = new List <int>();

            State.Add(DealerHand.First().value);     //only first card
            State.AddRange(PlayerHand.ConvertAll(card => card.value));
            return(State);
        }