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.
Inputs are not guaranteed to be output of rule 30 themselves. Closing.
Could someone here easily fix that?
Thank you, that's awesome you enjoyed it! :)
Props to the author(s), I enjoyed doing this kata (coffeescript)
Yes, this is a good point. The random function can be optimized to produce a consistent state, so it will be better. If I have time I will change it, thank you for your suggestion!
Hello! Great kata.
Just a remark: in random test, inputs that have leading or ending 0 (like [0, 1, 0 xxx 0, 0], I think this kind of input makes no sense and break the Rule 30.
Tell me if I'm wrong but row of cells should always have leading 1 or ending 1 (by only counting existing cells which make sense).
I say that because I was upset to have coded something that fit the rules but failed at something unexpected (I don't think it's mentionned in the instructions). And manage to fix it.
Cheers !
totally agree ! Damn...
I would like to see a test for empty comments, because my solution should fail for lines like "/**/".
And I suggest to change the test cases to also have comments within comments, so that "/* some text /**/ other*/" becomes "" instead of "other*/" which I think most of the current solutions would produce.
You should give an hint about the "re" module.
For a begginer, it would be easier to find how to start this Kata.