Combat Polish

Great lecture, only change I made was to add a method to the CoinWallet:

    public bool CanSpend(int cost)
    {
        return TotalCoins.Value >= cost;
    }

Just so then comparisons to the TotalCoins are done in the wallet class.

Thanks!

Julian

Privacy & Terms