Ad
  • Custom User Avatar

    Inputs are not guaranteed to be output of rule 30 themselves. Closing.

  • Custom User Avatar

    Could someone here easily fix that?

  • Custom User Avatar

    Thank you, that's awesome you enjoyed it! :)

  • Custom User Avatar

    Props to the author(s), I enjoyed doing this kata (coffeescript)

  • Custom User Avatar

    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!

  • Custom User Avatar

    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 !

  • Default User Avatar

    totally agree ! Damn...

  • Default User Avatar

    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.

  • Default User Avatar

    You should give an hint about the "re" module.

    For a begginer, it would be easier to find how to start this Kata.