One of the best Katas that i solved :D
that's not an issue, pay attention to b value,hint: you need to have some limit for the values :D
on JS i think 1 test is broken to be specific ".......
X......." this one it says that it should return [0,0] but instead the spaceship is situated at [0,1]
after my understanding every 2nd zero from array should be "deleted"/"removed"/paired after with this logic in mind i've made my code it passes all the basic tests but for some reason on the random tests it fails :O
This comment is hidden because it contains spoiler information about the solution
hmm i have a question: is the date solved with Date.UTC(params)??
JS : expected/actual are swapped at some places in the test suite (I don't know where exactly, see message just below)
just the expected and acual that are swapped in the code. Yours is in "expected". ;)
sonething is wrong with this kata i just inserted and empty array wtih 52 elements and after that i hitted atempt and on the last test i got:
Expected: [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ], instead got: ['ace of clubs', 'ace of diamonds', 'ace of hearts', 'ace of spades', 'eight of clubs', 'eight of diamonds', 'eight of hearts', 'eight of spades', 'five of clubs', 'five of diamonds', 'five of hearts', 'five of spades', 'four of clubs', 'four of diamonds', 'four of hearts', 'four of spades', 'jack of clubs', 'jack of diamonds', 'jack of hearts', 'jack of spades', 'king of clubs', 'king of diamonds', 'king of hearts', 'king of spades', 'nine of clubs', 'nine of diamonds', 'nine of hearts', 'nine of spades', 'queen of clubs', 'queen of diamonds', 'queen of hearts', 'queen of spades', 'seven of clubs', 'seven of diamonds', 'seven of hearts', 'seven of spades', 'six of clubs', 'six of diamonds', 'six of hearts', 'six of spades', 'ten of clubs', 'ten of diamonds', 'ten of hearts', 'ten of spades', 'three of clubs', 'three of diamonds', 'three of hearts', 'three of spades', 'two of clubs', 'two of diamonds', 'two of hearts', 'two of spades']
this test expects and empty array and i got an array of items what is wrong with this??
Nested loops won't work. indexOf has a loop under the hood.
Not an issue (resolved)
i solved it finally half hour after i've posted the question thx anyway
8311 guys passed the kata (see at the top of the page), nothing can be changed now.