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