예제 #1
0
 private void CleanCurrentTrick()
 {
     CurrentTrick.Remove(PlayerPosition.North);
     CurrentTrick.Remove(PlayerPosition.South);
     CurrentTrick.Remove(PlayerPosition.East);
     CurrentTrick.Remove(PlayerPosition.West);
 }
예제 #2
0
        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);
        }