Beta
Soccer Fixtures Results Table
Loading description...
Algorithms
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Hello, looks like a misprint in kata description: ["TEAM C", "6", "5"] instead of ["TEAM C", "6", "4"], or TEAM C won two matches (1x0 and 3x2). Receives 6 points and a total of 4 scored goals. instead of TEAM C won two matches (1x0 and 3x2). Receives 6 points and a total of 5 scored goals.
Should be:
Given these two matches results:
What's wrong there are the first match result and the total scored goals.
It's not mentioned how this should be handled. Sort by name or appearance in initial list?
Nice kata, thank you Calvin
No random tests.
actually, I tried to make all tests random... by myself. try to run the "Attemp" more than once and the teams and scores should change
Now I see what you did, but why on earth is code responsible for random tests preloaded? It should be a part of the fixture too.
cause I already had all the code ready here in my PC, so since I think that codeWars use a extremely complex system to create randoms and etc... I just decided to do by myself and pasted my code there. I really want ta this is acceptable, if not, I'm going to remove this kata :(
Literally move everything into the fixture (final test section).
When creating the kata, I have "Complete Solution", "Initial Solution", "Preloaded", "Test Cases", "Example Test Cases" in which of those I should add my random matches creator code?
"Test cases"
Nice, Thanks. I did it. It's okay now?
Sample tests:
fixed
Example tests would be nice.
Done, added one example test