Ad
  • Custom User Avatar

    How does [0, 5, 10, 10.5, 4.5] == 30??
    I don't understand the scoring here, it should either be 20 or 25, depending on the rounding:

    0 = 10 pts
    5 = 5 pts
    10 = 0
    10.5 := 11 = 0
    4.5 := 5 = 5 pts

    10 + 5 + 5 = 20

    Or, if I were to not round up/down and only use the integer value, the score is still wrong:
    0 = 10 pts
    5 = 5 pts
    10 = 0 pts
    10.5 := 10 = 0 pts
    4.5 := 4 = 10 pts

    10 + 5 + 10 = 25

  • Custom User Avatar

    Hehe, Your welcome :) And thanks to you for the update!

  • Custom User Avatar

    So, updated the description. Hopefully, that will make it clearer.

    Thanks again for adding a new requirement! :-)

  • Custom User Avatar

    Welcome to a profession where requirements are changing all the time. :-)

    Jokes aside, the kata is designed to be somewhat vague to encourage a more test-driven way of working.

    I added the last sentence about "figuring things out from the test cases" to emphasize this, but I realize that the final colon may be interpreted as the "test cases" are in the example that follows. I'm not sure if I can change this after the kata has been published, but I'll try.

    Thanks for your input! :-)

  • Custom User Avatar

    Okay this one was fun up until the 'Bananas from bahamas' test case. That one really just threw the whole algorithm out the water. The initial test case does not AT ALL make clear what the intention is. That test case is more about can you mash the two inputs together in order to form the output. It's not about going in order. That 'bananas' test case should be the one shown on the instructions, imho.