private void RemoveBankruptPlayers() { var losers = banker.GetBankrupcies(players); foreach (var player in losers) { players.Remove(player); } }
public void Execute(IPlayer player) { var ineligiblePlayers = banker.GetBankrupcies(players); players = players.Except(ineligiblePlayers); var count = 0; while (count < players.Count() && !banker.IsBankrupt(player)) { banker.Transact(player, players.ElementAt(count++), 50); } }