- Joined
- Mar 24, 2013
- Messages
- 1,105
So I am trying to check the points of players at the end of a round to see who won said round. However, I am running into a problem when it is a tie, I am not sure exactly how to deal with such an occurrence.
Currently I have:
With the above what happens is, if Player 1 is tied with Player 2, Player 1 is credited the win because Player 2's is not larger than ones, but instead equal to.
I am having a hard time wrapping my head around this problem, because if I add another condition that checks for equality first I am not sure what that means because two people could be equal scores but both have a smaller score than another.
Currently I have:
- Set CurrentIndex = 1
-
For each (Integer TempInteger) from 1 to 11, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- TotalPoints[CurrentIndex] Less than TotalPoints[TempInteger]
-
Then - Actions
- Set CurrentIndex = TempInteger
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
I am having a hard time wrapping my head around this problem, because if I add another condition that checks for equality first I am not sure what that means because two people could be equal scores but both have a smaller score than another.