Exemplo n.º 1
0
        private bool CanBuyProperty(Player player)
        {
            if (!player.Location.HasAProperty)
            return false;

              var someoneOwnsThisProperty = Players.SelectMany(x => x.Holdings).Any(x => Equals(x, player.Location.Property));
              if (someoneOwnsThisProperty)
            return false;

              return player.CanAffordProperty();
        }