Ad
  • Custom User Avatar

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

  • Custom User Avatar

    Sorry, but this is the actual array that is used in the automated test. My code passes the "example" tests (Bellow the kata input). But when it run the automated tests, I'm just printing the array for debugging purposes, and this is the array input the test gives me 👆 (the example I showed in the comment).

    That's why I'm saying the js test gives a random array input that is not valid

  • Default User Avatar

    Your comment here shows wrong arrays of words, and gets the wrong outcome... but I checked that your eventual solution for this test and your code does in fact run the expected sequence of the game, by the rules, and you get the correct outcome. So, no, there's nothing wrong with the JS tests. It would be preferred that you go back and edit the comment in a situation like this. Regardless, glad you enjoyed the kata challenge.

  • Custom User Avatar

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