Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Thanks for pointing that out! I'll go fix it right away! :)
First i deleted rounding because your right, it was unnecessary. But i do not understand your points. First of all what do you mean by having to convert the output to use the wrong data type? I still think validating the input is necessary because maybe in real life this function works on user input. Also i do not understand what you mean converting the input because it uses wrong data type? All i say is that when it's an invalid input you should return -1 that in this case indicates an error.
I deleted rounding because it caused too many errors. :)
Rounding has been deleted.
What about the function name?
None of these add any depth to the task.
Added.
.
I changed it to win to game ratio :)
Could you please clarify, dosen't that just add extra depth to the kata?
No fixed tests with
points = 0
.The values should be compared exactly.
That's
17/40 == 0.425
. The expected rounding direction isn't specified.Well thats pretty much how many games you have won of all the games you have played. So let's say you win 15 out of 20 games then you lost five and won 15. When dividing wins by all games you get the precentage in decimals of how many games of lets say 100 games you win and you lose the rest. But i do understand your point. I just tought it might be more fun this way.
Input validation is a worthless requirement.
Loading more items...