Ad
  • Custom User Avatar

    Alright. Thank you for approving.

  • Custom User Avatar

    I fixed the discrepancies mentioned in the translation. If you approve of it, you can navigate to it and hit "approve" to merge it with your kata.

    Just a question — do you speak with GPT? No judgment, but I have never seen that before.

  • Custom User Avatar
  • Custom User Avatar
  • Custom User Avatar

    Under testLettersOutsideValidRange(), you state that "12345678Z" should return false in the error message, but assert that is true (of which is the correct assertion). Slight discrepancy, nothing severe.

    500 valid and invalid random tests is overkill. 40 each should suffice, but even that is pushing it a little. Again, not severe.

    Besides that, all of your fixed tests are for false assertions. I would reccommend adding some fixed tests that expect true to be returned.

  • Custom User Avatar
  • Custom User Avatar

    To be fair, I did write the Road class, so of course I know how it works. I imagine that figuring out what it does and how you can use it raises this kata to a 6kyu. I think that it is a fair rating :)

  • Custom User Avatar

    Here's a Lua translation.

    Nice kata!

  • Custom User Avatar

    Here is a Java translation.

    Nice kata!

  • Custom User Avatar

    Thanks. As it would have it, I learned lua scripting before I studied Java in high school. (I made Roblox games for fun as a kid)

  • Custom User Avatar

    I misread what you meant by "2 spaces". I thought you meant before the brackets :P

    I have 0 experience in Python (my high school teaches Python, but since I'm competing for their computer science team I study strictly Java of which is the language used in the competition) so I'm just going to trust your translation and probably have my classmates and teacher run tests on it. I'll let you know if we find anything.

    I looked at the diff and I think it looks good.

    Thank you for the translation!

  • Custom User Avatar

    I appreciate your feedback.

    I include and mention private L and private R to let the solver know that they exist, but that to actually do anything with them they would have to use the public methods provided. It also helps them to understand that the next roads are indeed Road objects and that a Road could be thought of as a sort of Node. I feel that if I had not mentioned them, the kata would be needlessly more confusing, especially to 7kyu programmers (the target demographic of this kata). If I am to make a kata about using limited resources, I must of course give the solver adequate information about those resources.

    Though, I am not sure what you mean when you say that they are "not conceptually the same type."

    About the getters, ... I simply forgot how inheritance worked. I thought I would need them to access information about a Road when calling from other Roads, but that does not seem to be the case. Thank you for enlightening me.

    About that space issue, I will of course fix it.

  • Custom User Avatar
  • Custom User Avatar

    Frankly, I've no idea. Some of my friends have been unable to do it but I still believe its a 7.

  • Custom User Avatar
  • Loading more items...