private void VoteOutPlayer() { // All players have the same vote string playerVote = ActivePlayers.FirstOrDefault()?.Vote; if (string.IsNullOrEmpty(playerVote)) { return; } Player playerToEliminate = PlayerMapping[playerVote]; EliminatePlayer(playerToEliminate); }
public bool IsActivePlayer(PlayerMobile pm, out PokerPlayer player) { player = ActivePlayers.FirstOrDefault(x => x.Owner == pm); return(player != null); }