Ad
  • Default User Avatar

    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 ?

  • Default User Avatar

    Oh, that was really the problem. Thank you very much :D

  • Default User Avatar

    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.

  • Default User Avatar

    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.

  • Default User Avatar

    Thank you, thanks to you I finally understand this dilemma with the size and length of the line)

  • Default User Avatar

    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!

  • Default User Avatar

    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?

  • Default User Avatar

    "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.