tournament: Remove tiebreak in favor of more wins#300
Merged
petertseng merged 1 commit intoexercism:masterfrom Jul 26, 2016
petertseng:tournament-tie
Merged
tournament: Remove tiebreak in favor of more wins#300petertseng merged 1 commit intoexercism:masterfrom petertseng:tournament-tie
petertseng merged 1 commit intoexercism:masterfrom
petertseng:tournament-tie
Conversation
Note that this sentence was added in #254 and previously was not present. No track has a test case that tests this condition (equal points, unequal number of wins). Because of a combination of various factors: * Teams play each other no more than once * Four teams per group * Wins award three points and draws one It's not possible to have a tie with teams with unequal numbers of wins. At the minimum: * One team (A) would get one win and zero draws. * One team (B) would get zero wins and three draws. That's not possible, since at least one draw from team B would be against team A, giving team A an extra point and breaking the tie. We *can* solve this by breaking any one of the above three conditions. If we would like to, we should make that explicit decision and edit the JSON test cases to match. However, on the assumption that we want to keep things as they are (and were before #254), this commit removes the sentence. This was the suggested course of action in #287.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note that this sentence was added in #254 and previously was not
present. No track has a test case that tests this condition (equal
points, unequal number of wins).
Because of a combination of various factors:
It's not possible to have a tie with teams with unequal numbers of wins.
At the minimum:
That's not possible, since at least one draw from team B would be
against team A, giving team A an extra point and breaking the tie.
We can solve this by breaking any one of the above three conditions.
If we would like to, we should make that explicit decision and edit the
JSON test cases to match. However, on the assumption that we want to
keep things as they are (and were before #254), this commit removes the
sentence.
This was the suggested course of action in #287.