I am trying to create a basic poker game using c#.
So far I have got the cards randomly dealt using these three lines:
Suit suit = (Suit)randomCardSelector.Next(4);
Value value = (Value)randomCardSelector.Next(13);
Card abc = new Card(suit, value);
Now what I am trying to achieve is that the dealing of cards only of those who haven't been dealt already. Now to do this I have created two 'dictionary' collections, one called 'deck' and one called 'dealt'. I thought about adding all the cards to deck originally and then when dealt on the table they shall be deleted from deck and added to dealt using the cards unique key.
What do you believe will be the best way of going about this? I basically do not want duplicate cards, example Ace Hearts and Ace Hearts combination being in the same deck. How can I prevent this?