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.
Hi Adrian,sorry for late answer i go back to coding after work and family hours. I cant tell you initial input all i sse in test is - Should return '[3]' - Expected: [3], instead got: [] . Am i right if the given lines array contains only one figure for example 3 play function must return [3] ?
Hi Valeriy, I'm assuming you're solving this kata in Javascript? Please could you provide more details such as the initial input.
Hello Adrian! I really do not understand how the test can return only 2 figures in result ? It's not possible according to kata description.
Should return '[1,2]' - Expected: [1, 2], instead got: []
Fantastic!
Ok,thank you mate.
adrian.eyre you're a godsend, I went from the Kata not taking my code to 250/250 passed almost immediately.
The class contructor should not accept arguments. The function
play
should accept two argumentsdie1
anddie2
which are both integers.The tests are setup in the following way
This means the only public function visable should be
play
and should return a string.Hope this helps.
HellŠ¾ guys, i do not understand what does this statement mean "Return Game over! if a player has won and another player tries to play" ?