You need to sign in or sign up before continuing.×
Ad
  • Default User Avatar

    Thanks for pointing that out! I'll go fix it right away! :)

  • Default User Avatar

    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.

  • Default User Avatar

    I deleted rounding because it caused too many errors. :)

  • Default User Avatar

    Rounding has been deleted.

  • Default User Avatar

    Added.

  • Default User Avatar

    .

  • Default User Avatar

    I changed it to win to game ratio :)

  • Default User Avatar

    Could you please clarify, dosen't that just add extra depth to the kata?

  • Default User Avatar

    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.

  • Default User Avatar

    @tonilicoding okay, u have very solid justifications and i do agree.

  • Default User Avatar

    Umm why make it easier for the programmer by rounding it for him when this is a place to learn and not to make everything as easy as possible. Also why so much hate on his idea if he likes it let him do his kata. I do agree on some of your points, forexample using the new framework. Also maybe the idea of this kata is to go and do your own research. You should complain about things that aren't clear and bugs not about how hard your life is when you have to do a few extra steps to complete a kata.

  • Default User Avatar

    Should be fixed. :)

  • Default User Avatar

    Should work now. Thanks for the feedback. (:

  • Default User Avatar

    Thanks!

  • Default User Avatar

    How would you suggest correcting this issue?

  • Loading more items...