Beispiel #1
0
 public void End()
 {
     foreach (var player in (from s in Table.OccupiedSeats() select s.Player))
     {
         player.Hand.CheckHandSetType();
     }
 }
Beispiel #2
0
        public void Begin()
        {
            Deck = new Deck();
            Cards.Clear();

            foreach (var player in (from s in Table.OccupiedSeats() select s.Player))
            {
                player.Hand = new Hand(Cards);
            }

            Deal();
        }
Beispiel #3
0
        private void Deal()
        {
            for (int i = 0; i < 2; i++)
            {
                foreach (var player in Table.OccupiedSeats().Select(x => x.Player))
                {
                    player.Hand.Cards.Add(Deck.Next());
                }
            }

            Deck.Next();

            Cards.Add(Deck.Next());
            Cards.Add(Deck.Next());
            Cards.Add(Deck.Next());

            Deck.Next();

            Cards.Add(Deck.Next());

            Deck.Next();

            Cards.Add(Deck.Next());
        }