Пример #1
0
 public bool IsMatch(string s) => (s.Length == 1 && BallReader.IsStrike(s[0]));
Пример #2
0
 public BaseFrame GetFrame(string s) => new Open(
     BallReader.GetPins(s[0]),
     BallReader.GetPins(s[1])
     );
Пример #3
0
 public bool IsMatch(string s) => (
     s.Length == 2 &&
     BallReader.IsValid(s[0]) &&
     BallReader.IsValid(s[1])
     );
Пример #4
0
 public bool IsMatch(string s) => (s.Length == 2 && BallReader.IsSpare(s[1]));
Пример #5
0
 public BaseFrame GetFrame(string s) => new Spare(BallReader.GetPins(s[0]));
Пример #6
0
 public BaseFrame GetFrame(string s) => new FinalStrike(
     BallReader.GetPins(s[1]),
     BallReader.GetPins(s[2])
     );