Beispiel #1
0
        public Episode(Policy policy)
        {
            IsOver = false;
            ++Episode.EpisodeNumber;

            IDeck deck = new InfiniteDeck();

            this.policy = policy;
            policy.ClearHistory();
            environment = new Environment(deck);
            //System.Console.WriteLine("Get dealer card:");
            Card dealerCard = environment.Deal(true);

            agent = new Agent(policy, dealerCard);
        }