Here's an example of the problem. I've snipped the first
load of output, but the first team has 95 runs:
The ball has been bowled. It's new position is 500
The ball has been hit. It's new position is 520
The ball has been rolling. It's new position is 550
Umpire - Batsman is not out.
CurrentBatsmans score is 43
Team 2's score is 97
At this point team 2 has a higher score than team 1 and
therefore has won, but...
The ball has been bowled. It's new position is 400
The ball has been hit. It's new position is 440
Fielder 7 has caught the ball.
Umpire - Batsman is out.
CurrentBatsmans score is 43
Team 2's score is 97
The game continues until all players are out...
Player 1's score is 95.
Player 2's score is 97.
The winner is player 2.
The Game has ended
The game should end as soon as the second teams score is
greater than the first teams score.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=88713
Here's an example of the problem. I've snipped the first
load of output, but the first team has 95 runs:
The ball has been bowled. It's new position is 500
The ball has been hit. It's new position is 520
The ball has been rolling. It's new position is 550
Umpire - Batsman is not out.
CurrentBatsmans score is 43
Team 2's score is 97
At this point team 2 has a higher score than team 1 and
therefore has won, but...
The ball has been bowled. It's new position is 400
The ball has been hit. It's new position is 440
Fielder 7 has caught the ball.
Umpire - Batsman is out.
CurrentBatsmans score is 43
Team 2's score is 97
The game continues until all players are out...
Player 1's score is 95.
Player 2's score is 97.
The winner is player 2.
The Game has ended
The game should end as soon as the second teams score is
greater than the first teams score.