Ad
  • Custom User Avatar
  • Custom User Avatar

    Ghost objects are given a random color **attribute** Your code is writing a method for the Ghost class.

  • Default User Avatar

    As I mentioned the part in this kata that encourages you to write your own tests is good. I agree with that. But still I wrote my tests and everything was ok. But then when I tried to attempt the solution it gave me errors and the message was that It could not recognise the Ghost class even though I imported the class and passed the tests. And by the way I was using Java to solve the problem.

  • Custom User Avatar

    Yeah, I guess you are referring to the C# translation. I'd like to just remove it, but it was created several years ago (unfortunately after the kata itself was out of beta), and any changes to it now would potentially break solutions that have already passed.

    I would not select an option to allow translations for any kata that I made going forward.

  • Custom User Avatar

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

  • Custom User Avatar

    oh okay. Out of curiousity, which language(s) did you try?

    When I first made this kata, I thought it was better not to include tests in an attempt to encourage people to write their own, but that might not be what the community considers "best practices" now.

    As for the errors, did they give any error messages?

  • Default User Avatar

    Tests were not there. I also wrote my own tests and wrote "Ghost" class and tested them and they all passed but when tried to "Attempt" them, I received errors for no apparant reasons. To be fair I learned about tests and how to write them a little bit and that was good but still I couldn't get it passed for no apparent reasons.

  • Custom User Avatar

    Too easy, or...?

  • Default User Avatar

    Not the best kata that I know of.

  • Custom User Avatar

    Will do!

  • Custom User Avatar

    I don't think it should ever have had a getColor() method in C#, but somebody else created the C# translation, and this has been out of beta for years, so making changes may cause issues for already accepted solutions.

  • Custom User Avatar

    @ogryzek, I guess this is now resolved, if so, update and mark it as resolved once the issues are fixed.

  • Custom User Avatar

    Testing in C#: "'Ghost' does not contain a definition for 'GetColor'".
    The Details don't mention such a method.

  • Custom User Avatar

    Test cases for the java are wrong. it checks strings equality with == instead of .equals , please fix it.

  • Custom User Avatar

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

  • Loading more items...