Menu

#2 Game continues past winning position

CVS_HEAD
open
4
2004-05-10
2004-04-28
No

The game should end when the second team is:

a) all out (this works OK)

or

b) has scored more than the first team (this does not
work OK)

Discussion

  • Heidi Gardler

    Heidi Gardler - 2004-05-10
    • status: open --> closed
     
  • Heidi Gardler

    Heidi Gardler - 2004-05-10
    • status: closed --> closed-works-for-me
     
  • Ross Gardler

    Ross Gardler - 2004-05-10
    • status: closed-works-for-me --> open-works-for-me
     
  • Ross Gardler

    Ross Gardler - 2004-05-10
    • priority: 2 --> 4
    • status: open-works-for-me --> open
     
  • Ross Gardler

    Ross Gardler - 2004-05-10

    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.

     

Log in to post a comment.

MongoDB Logo MongoDB