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.
Passes all tests except for the case "Should pass edge cases" I don't understand what the test is going on there. The array is passed empty, if I don't confuse anything, and its length is zero. I make checks for these conditions, but the error still does not allow me to pass this last test. Tell me what I'm doing wrong ?
Oh, that was really the problem. Thank you very much :D
My program for this test \ [ ':(', ':D', 'T_T', ':)' ] false \. Outputs the following \ [ 'T_T', ':(', ':)', ':D' ] \. But it gives me an error \ expected [ 'T_T', ':(', ':)', ':D' ] to deeply equal [] \ Please tell me what the problem is.
Can someone please explain to me how I can make sure the game ends. If one of the players scores 100 points, I return Player # won. The description says "Return Game over! if a player has won and another player tries to play." How can I understand if the second player is trying to roll the dice or not if the function arguments (dice rolls) are called in turn. Can I see the final number of dice rolls that are passed into the function at once? For example, there are only 30 rolls of the dice for two players, and player 1 scores 100 points on the 27th roll. And then it is clear that player 2 is still trying to play.
Thank you, thanks to you I finally understand this dilemma with the size and length of the line)
Oh, thank you very much. Indeed, an empty string created such an error. I added a condition for an empty string and everything is fine!
JS. What's wrong? expected 'z ScSQddBxPTfe KLqSucjHLv FxjbPw' to equal 'z ScSQddBxhpx GYE jP QyGgNrGmVuMQGfvW…' Is that what the program should check?! And why different letters in the error?
"TypeError: Cannot read properties of null (reading 'length')" - i don't know how to deal with this anymore. All random tests the code passes perfectly.