Ejemplo n.º 1
0
        private void PickCardBtn_Click(object sender, EventArgs e)
        {
            if (_player is CardDicePlayer)
            {
                var pl = _player as CardDicePlayer;
            }
            if (_player is CardPlayer)
            {
                var pl = _player as CardPlayer;
                _gameService.PickCard(pl);
            }
            if (_player is DicePlayer)
            {
            }

            DeckCards.Text = _gameService.GetRemainingCards().ToString();
        }
Ejemplo n.º 2
0
 public void CardPlayer_Can_PickCard()
 {
     _deckersMeeting.PickCard(_cardPlayer);
     Assert.IsTrue(_cardPlayer.OpenCards().Any());
 }