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.
Because you differentiate "12x + 2" to give you "12"
Ah, I thought you had to choose the best strategy. Thank you!
Not sure if it's been resolved you posted this, but it now says:
"return the winning gesture/s in the order in which they appear in the title"
In a random test, where:
we expect
'rock/scissors'
,but here,
'rock'
gives us a score of 2and
'scissors'
gives us a score of 1.Ah, well spotted. I've updated the random tests from:
to:
In order to not
return
undefined
, on your final line,change:
to:
Added random tests :)
I just thought it may be a better way to have the kata.
I'll remove the suggestion tomorrow, whether addressed or not, I'm fine with whatever sofiapoh chooses
For the 4th test I got:
Expected: [{"name":"Big Bob","score":5},{"name":"Joey Jaws","score":5}], instead got: [{"name":"Joey Jaws","score":5},{"name":"Big Bob","score":5}]
Perhapse make it so that the winner is not sorted by if there name is alphabetically ahead of the other, but that the user can choose for a tied score
Yes, also having this problem, I cant submit my answer
Thanks for the feedback, will hadd those examples tomorrow.
Well spotted, thanks, changed the coefficient of x to be a random integer between 2 and 100 and changed the error after the x.
Let me know if anything else pops up
Thanks for your help, ive now added more test cases as well as random ones. Let me know if there is anything else I should improve
Changed the content, let me know if there is still a problem
Changed the kata, let me know if the problem still persists
Loading more items...