Ad
  • Default User Avatar
  • Default User Avatar

    I had the same issue, but like gbhojraj pointed out making sure the original input gets unmodified it went away - thanks! :)

  • Custom User Avatar

    I believe this is an issue that only appears when you failed the "Input should not be modified" test. I solved that and it went away for me.

  • Custom User Avatar

    Anyone can help me on this ?

  • Custom User Avatar

    Hi there.

    I had a lot of fun with this Kata, but I'm a bit stuck with one of the test : the one on Glider4.

    It expects
    â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘
    â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘
    â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘
    â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘
    â–‘â–‘â–‘â–‘â–“â–‘â–‘â–‘â–‘â–‘â–‘
    â–‘â–‘â–‘â–‘â–‘â–“â–“â–‘â–‘â–‘â–‘
    â–‘â–‘â–‘â–‘â–“â–“â–‘â–‘â–‘â–‘â–‘
    â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘
    â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘
    â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘
    â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘

    But in the instructions, it's said that the result must be "cropped around all of the living cells".
    I'm a bit frustrated because my implementation returned
    â–“â–‘â–‘
    â–‘â–“â–“
    â–“â–“â–‘

    which contains the expected living cells.

    I'm not a native english speaker (as you probably already guess), and I may have misunderstood the instructions.

  • Custom User Avatar
  • Custom User Avatar

    Very concise, I've never think to use splat in invokation to replace a concat.

    You can avoid the dot when using @ : @.before is equivalent to @before

  • Custom User Avatar

    Hello ! you should give a comprehensive comment, I think this should be promoted to best practice.