protected void CheckSingleBall(int ball, string name) { if (ball > 10) { throw new ArgumentOutOfRangeException(name, "ball upper limit is 10"); } }