Example #1
0
 public void BallPlayed(ScoreCard inning, int ball)
 {
     inning.AddBallPlayed(ball);
     if (inning.IsCurrentOverFinished() || inning.IsAllOut() || this.IsChasedSuccessfully())
     {
         inning.DisplayScoreCard();
     }
 }
Example #2
0
 public void BallPlayed(ScoreCard inning, string ball)
 {
     inning.AddBallPlayed(ball);
     if (inning.IsLastOverFinished() || inning.IsAllOut())
     {
         inning.DisplayScoreCard();
     }
 }