private List <Card> moveCards(Card player1Draw, Card player2Draw, Deck _player1, Deck _player2) { _player1.Cards.Remove(player1Draw); _player2.Cards.Remove(player2Draw); List <Card> bounty = new List <Card> { player1Draw, player2Draw }; return(bounty); }
private void GetResults(Card player1Draw, Card player2Draw, Deck _player1Win, Deck _player2Win, List <Card> bounty) { if (player1Draw.Value > player2Draw.Value) { AddBounty(_player1Win, bounty); result += String.Format("{0} Wins!", _player1Win.Owner.Name); } else { AddBounty(_player2Win, bounty); result += String.Format("{0} Wins!", _player2Win.Owner.Name); } }
private List <Card> moveCards(List <Card> player1Draw, List <Card> player2Draw, Deck _player1, Deck _player2, List <Card> _bounty) { foreach (var card in player1Draw) { _player1.Cards.Remove(card); _bounty.Add(card); } ; foreach (var card in player2Draw) { _player2.Cards.Remove(card); _bounty.Add(card); } return(_bounty); }
private Card DrawCard(Deck _current) { return(_current.Cards.ElementAt(draw.Next(_current.Cards.Count))); }
private List <Card> moveCards(Deck _battleDeck1, Deck _battleDeck2, Deck _player1, Deck _player2) { List <Card> bounty = new List <Card>(); foreach (var card in _battleDeck1.Cards) { _player1.Cards.Remove(card); bounty.Add(card); } foreach (var card in _battleDeck2.Cards) { _player2.Cards.Remove(card); bounty.Add(card); } return(bounty); }