Ad
  • Custom User Avatar

    It's still failing random tests in php

  • Custom User Avatar

    I tried to make description more clear and added random test.
    I'll mark this resolved now. If it's not ok, please let me know :)
    Thanks!

  • Custom User Avatar

    Thanks. RR and LL are added now to test both car and obstacle. Soon I'll create random test and improve description.

  • Custom User Avatar

    I get it now. Ok, thanks for help :)

  • Custom User Avatar

    Many details, it's not easy to explain. If you have any suggestions about description, please let me know.
    I don't know how those random tests are written. But maybe I can check in my solved katas how's that done and make those.

  • Custom User Avatar

    I guess I can mark this resolved

  • Custom User Avatar

    Sure, I'll post all that, but just one thing: we know the fact that other cars are moving twice slower and we know the fact that passed means one step behind. I really want to make it clear, but I want people to think through it. I didn't want to tell them "Hey, what if that other car moves in the same step you are passing it, so you stay in the same line? Did you foresee that catch, hm?"

  • Custom User Avatar
    • It is "successfully making a step through a subarray which includes obstacles. Doesn't matter where obstacle is positioned.
    • Same. Check the illustration.
    • Option 1 - you get +11: 5 for step, 3+3 for two obstacles passed (they are one step behind now)
    • Option 2 - +5 only for new step reached. No additional points for passed obstacles
    Cars are moving twice slower, let me "draw" that:
    
    [:, :, :]
    [:, :, :]
    [:, :, :]
    [C, :, :]
    [:, :, X]
    
    [:, :, :]
    [:, :, :]
    [:, :, :]
    [C, :, X]
    [:, :, :]
    
    [:, :, :]
    [:, :, :]
    [C, :, X]
    [:, :, :]
    [:, :, :]
    
    [:, :, :]
    [:, :, X]
    [C, :, :]
    [:, :, :]
    [:, :, :]
    
    So you can "pass" them.
    
    
  • Custom User Avatar

    This should be pretty much clear, but I added that's additional 3 and 7 points. The last sentence you wrote explains when you can add those points. IT is obstacle or car, maybe one more comma should be there. So, you can't add points when your car is in the same "line" (step, subarray). And of course you don't drive through obstacle or drive through car. I also wrote "If you move step forward and hit the obstacle, previous step with all obstacles counts as passed". I think this question "Does the score from passing an obstacle gets annuled if you go around one obstacle but hit another obstacle at the same time?" is clear, but if you think I should make it more clear please suggest some better sentences.
    Thanks for your notes :)

  • Custom User Avatar

    Thanks. I forgot about boundaries. That's corrected.

  • Custom User Avatar

    I am shocked and appalled. Bravo!