public void AddThrow(KnockedDownPin value) { if (!CanAddPins()) { throw new InvalidOperationException("Frame is already full"); } pins.Add(value); }
public void AddThrow(KnockedDownPin value) { if (!frames[currentFrame].CanAddPins()) { currentFrame += 1; frames.Add(new Frame(currentFrame)); } frames[currentFrame].AddThrow(value); }