Exemplo n.º 1
0
        public override string ToString()
        {
            string frame = String.Empty;

            frame += (FirstBallScore == 10 ? "X" : FirstBallScore == 0 ? "-" : FirstBallScore.ToString());
            frame += (SecondBallScore == 10 ? "X" : SecondBallScore == 0 ? "-" : SecondBallScore + FirstBallScore == 10 ? "/" : SecondBallScore.ToString());
            frame += (ThirdBallScore == 10 ? "X" : ThirdBallScore == 0 ? "-" : ThirdBallScore.ToString());
            return(frame);
        }
Exemplo n.º 2
0
 public override string ToString()
 {
     return(Strike ? "X" : Spared?FirstBallScore.ToString() + "/" : FirstBallScore.ToString() + SecondBallScore.ToString());
 }