コード例 #1
0
        public void RemovePlayer(BlackjackGamePlayer player)
        {
            if (Players.Contains(player))
            {
                if (player.IsLive)
                {
                    throw new InvalidOperationException("Player is in live round");
                }

                Players.Remove(player);
                RoundPlayersQueuedForNextRound
                .Remove(RoundPlayersQueuedForNextRound
                        .FirstOrDefault(a => a.Player.Id == player.Id));
            }
        }