Ad
  • Default User Avatar

    I also get zeros(10000000000) : 2499999997
    So I guess it's an error

  • Custom User Avatar

    I like this thought. So in JavaScript, instead of returning null for a square it should return an empty array [].
    It would be a more consistent case, and should have minimal impact on the submitted solutions.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    another hint: put an array in your object to push all the moves and print that out every "play" .
    easy to put in a test loop later ;)

  • Custom User Avatar

    As usual I've done 20 lines of Ruby to achieve the same as what some guys have done in 1 line, but it passed and I'm happy :) Great kata to get stuck in and figure out, thanks.

  • Custom User Avatar

    classic debugging procedure: print stuff to the console. ;)

  • Default User Avatar

    Hi Adi,
    My code is failing ~ 3% of the random tests. Is there a way of knowing what "plays" are making it fail so I can fix? I've checked my code over and over. I've come so far with this, really want to get it over the line!
    Thanks,
    Diptis

  • Default User Avatar

    My code passed, but for zeros(10000000000) it gives 2499999997 while the expected answer is documented as 2499999998. Is that an error? This kata is simpler than many of the level 6 ones I've done, it's on a par with level 7 ones.

  • Default User Avatar

    Very nice kata with distinct scopes to work on, thanks.

  • Custom User Avatar

    If you sign up for Codewars Gitter (https://gitter.im/Codewars/codewars.com) you can DM me on there :-) I'm always happy to help :-)

  • Default User Avatar

    Cool, well I'm saying this anyway "Did you see that ludicrous display last night? What was Wenger thinking, sending Walcott on that early?" :)
    Back on topic, it was the special case for first char in the string that was odd rather than whitespace, need to review.
    Adrian, could I possibly ask you about Makers Academy by direct message, not sure if dm is possible on this site? I have applied to do the course.

  • Custom User Avatar

    Thank you :-) no not an Arsenal fan, Ive never really been into football just the first image I found :-)

  • Default User Avatar

    A very nice visually enjoyable kata. Odd thing with whitespace behaviour in Ruby, I'll look for a more elegant way to handle it.
    The photo suggests an Arsenal fan authored this one, am I right?