예제 #1
0
        public List <Door> MakeDoors()
        {
            var winnerDoorIndexNumber  = _randomChooser.RandomNumber(0, 3);
            var choosenDoorIndexNumber = _randomChooser.RandomNumber(0, 3);

            var doors = new List <Door>()
            {
                new Door(), new Door(), new Door()
            };

            doors[winnerDoorIndexNumber].HasPrize        = true;
            doors[choosenDoorIndexNumber].HasBeenChoosen = true;

            return(doors);
        }
예제 #2
0
        public Card TakeOneCard()
        {
            var random = _randomChooser.RandomNumber(0, Cards.Count);

            Console.WriteLine($"AAAAAAAAA {random}");
            var card = Cards[random];

            Cards.Remove(card);

            return(card);
        }