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.
This comment is hidden because it contains spoiler information about the solution
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
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.
This comment is hidden because it contains spoiler information about the solution