class Player { int HP } with a TakeDamage(int) method.
Build:
```csharp
class Player
{
public int HP { get; private set; } = 100;
public void TakeDamage(int amount) => HP = Math.Max(0, HP - amount);
}
```
Don't allow HP to go below 0 — clamp with `Math.Max`.Sign in to save your code and track progress across devices.