Exemplo n.º 1
0
        private static void AddSpare()
        {
            var secondRoll = SecondRoll();

            secondRoll.NextRoll     = BuildRoll.From(RawLine[Index + 2]);
            secondRoll.KnockedPins -= FirstRoll().KnockedPins;
            Line.AddFrame(new SpareFrame(FirstRoll(), secondRoll));
        }
Exemplo n.º 2
0
        private static void AddStrike()
        {
            var firstRoll = FirstRoll();

            firstRoll.NextRoll          = BuildRoll.From(RawLine[Index + 1]);
            firstRoll.NextRoll.NextRoll = BuildRoll.From(RawLine[Index + 2]);
            Line.AddFrame(new StrikeFrame(firstRoll));
            Index -= 1;
        }
Exemplo n.º 3
0
 private static void AddFrame()
 {
     Line.AddFrame(new Frame(FirstRoll(), SecondRoll()));
 }