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); }
public override string ToString() { return(Strike ? "X" : Spared?FirstBallScore.ToString() + "/" : FirstBallScore.ToString() + SecondBallScore.ToString()); }