private void CleanCurrentTrick() { CurrentTrick.Remove(PlayerPosition.North); CurrentTrick.Remove(PlayerPosition.South); CurrentTrick.Remove(PlayerPosition.East); CurrentTrick.Remove(PlayerPosition.West); }
public void CardWithdrawn(string withdrawingUser) { if (!CurrentTrick.ContainsKey(withdrawingUser)) { throw new System.InvalidOperationException("there is no card to withdraw"); } var card = CurrentTrick[withdrawingUser]; PlayerStates[withdrawingUser].Hand.Add(new Card(card)); CurrentTrick.Remove(withdrawingUser); }