Example #1
0
 /// <summary>
 /// Sets a strike score
 /// </summary>
 public void SetStrike()
 {
     frames.Add(BowlingFrameFactory.GetBowlingFrame(throws, 10, 0));
 }
Example #2
0
 /// <summary>
 /// Sets the frame score
 /// </summary>
 /// <param name="firstTry">The number of pins knocked down on the first try</param>
 /// <param name="secondTry">The number of pins knoced down on the second try</param>
 public void SetFrame(int firstTry, int secondTry)
 {
     frames.Add(BowlingFrameFactory.GetBowlingFrame(throws, firstTry, secondTry));
 }