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.
@bozh, I agree 👍
str.each_char
seems like a better option.Done.
On it.
Added a Javascript translation!
Added a python translation!
Fixed. I've added one test for checking whether projects are randomly chosen, and another to check that ordering is shuffled.
Ah, got what you mean. The randomness is choosing projects is tested, but not necessarily the randomness in order. Will fix.
Hmm. Wouldn't the above test cover that? Do you have any suggestions on how the test can be improved?
Interesting, didn't know that
Clamp
existed!This comment is hidden because it contains spoiler information about the solution
There is a test for randomness, it runs the same function 100 times and makes sure the number of unique solutions received is greater than 1.
Did your solution happen to pass that test without adding any randomness?
I can't make fundamental changes to the question anymore, however I've worked on the description to make these points more clear. Marking as resolved.
This comment is hidden because it contains spoiler information about the solution
Thanks a lot for the feedback @seasidetesting, I'll try to improve this soon :)
Every object has a true/false value in Ruby - doesn't always make sense, but the concept exists :)
Hmm, that's valid. HashWithIndifferentAccess spoilt me :/
Ah, yes - I kinda agree here. I'd never design a DSL like this, must've gotten lost in trying to add some complexity to this kata. I'm not sure if I can go back and remove that though?
Loading more items...