Пример #1
0
        private Frame GetCurrentFrame()
        {
            if (IsNotLastFrame() && // Last frame can have 3 rolls
                (currentFrame.IsStrike() || currentFrame.HasTwoRolls()))
            {
                currentFrame = new Frame();
                frames.Add(currentFrame);
            }

            return currentFrame;
        }
Пример #2
0
 public Game()
 {
     currentFrame = new Frame();
     frames = new List<Frame> { currentFrame };
 }