Beispiel #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;
        }
Beispiel #2
0
 public Game()
 {
     currentFrame = new Frame();
     frames = new List<Frame> { currentFrame };
 }