• This comment is hidden because it contains spoiler information about the solution

  • I am able to pass them with the same solution that passes the main tests so I am marking this as resolved.

  • Unsure how this reverted to the original, but I have reimplemented the change.


  • I have added these. Thanks for the feedback.

  • You raise a good point, thank you! I have fixed the test case to require the first step and updated the description to indicate that the first step should always be returned.

  • I also can't seem to get past this error - I'm not sure it is resolved.

  • Thanks for the feedback - I have changed dice to die where appropriate but left the description as it is; the intetion is for it to be wordy given that it is trying to teach.

  • A drawback of the kata at present is that there are no random test cases.
    However, because (currently) the probabilities are hardcoded, after testing, they will always add up to 1.

  • It mentioned this above the examples, but you raise a good point that it may not have been obvious enough. I have italicised it now to make it more obvious.
    Thanks for the feedback!

  • Thank you very much for taking the time to leave this feedback.

    I have changed the type for the user test to match the final one.
    I have added the requirement to round to 2 decimals.
    I have added an example.

    I will add the random test cases when I have more time either this evening or tomorrow.

  • I understood what you meant when you said that height could be ignored, but I think unlike friction or 'other forces' such as air resistance it would be helpful to state that the launcher is at the same height as the basket.

    Finally I think there is a spelling mistake in one of the test cases (number 4) where it says "your the math".

    Hope this is useful, thanks for the kata.

  • I found the fix to this. My test for only 1 or 2 scores was before my test to ensure that each participant had a name and a roll, thus where this was not the case, I was trying to call .length on a non-existant property.

    Hope this helps someone in my position.

  • Hello all,

    I am getting an TypeError: Cannot read property 'length' of undefined at winner at one of my test cases.
    Has anyone encountered this?

    I am setting winner = candidates[i].name which is accepted by the majority of the test cases except returns an error on one.
    Given that I am setting winner to a name, which is a string, I can't understand why this Kata is calling .length on it.

    I would appreciate it if someone could tell me where I am going wrong with this.

  • A little unclear how the author wants us to handle decimal places. An example would be good.