Exemplo n.º 1
0
        public int Value(CardSet cardset)
        {
            int res = 0;

            foreach (var card in cardset.Cards)
            {
                res += VensiValue(card);
            }
            return(res);
        }
Exemplo n.º 2
0
        private void MarkPlayer(Player activePlayer)
        {
            ((GraphicCardSet)game.CurrentPlayer.Cards).Panel.Visible = false;


            game.Refresh();
            if (game.Deck.Cards.Count == 0 && game.Table.Cards.Count == 0)
            {
                ((GraphicCardSet)game.Table
                ).Panel.Controls.Clear();
            }
            lbl_Active.Text = "Сейчас ходит:" + game.CurrentPlayer.Name;
            cur_score.Text  = game.Value(Activecards).ToString();
            ((GraphicCardSet)game.CurrentPlayer.Cards).Panel.Visible = true;
            Activecards = new CardSet();
        }
Exemplo n.º 3
0
 public MoveActive(CardSet movingCards)
 {
     MovingCards = movingCards;
 }
Exemplo n.º 4
0
 public Player(string name, CardSet cards)
 {
     Name  = name;
     Cards = cards;
 }
Exemplo n.º 5
0
 public void Add(CardSet cardSet)
 {
     Add(cardSet.Cards.ToArray());
 }