Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
 public Game()
 {
     currentFrame = new Frame();
     frames = new List<Frame> { currentFrame };
 }