Earn extra honor and gain new allies!
Honor is earned for each new codewarrior who joins.
Learn more
  • wtf??????

  • I declared one variable name color inside the class. Then using random module assign any color. but in ghosts list every color is same ! what should I do ?

  • The lack of sample tests was intentional. When this Kata was created, there was no requirement for sample tests. Has that changed?

    Also, I've noticed people ask for random tests on some other Katas as well, but have never really been a fan of randomness in tests. May I ask why you are giving this feedback as an "issue" rather than a "suggestion?"

  • No sample tests in ruby, other than that some languages are missing random tests.

  • You are right. I had to read troubleshoot document and reread instructions. I didn't see the words "Fizz", "Buzz", 3, and 5 by default!

  • There is no problem in that test. Read this

  • I think this kata has a problem. In Javascript, I pass the first two custom tests but the third says Expected: "FizzBuzz", Instead: 15. But according to my code and the output, it gives "FizzBuzz". I think the test is having an issue.

  • Well I an quite new around here, I don't feel I am in the position to give advices, maybe turn to a moderator around here with more experience, or just make a new kata mentioned in the description of this one or just delete this issue and it's like nothing ever happened:-)). All best wishes man, thank you for creating content. Best of luck in everything you do!

  • In Java, you can't write a program without using a class.
    But in Python you can get a lot done without classes. So they are usually not introduced until later

    • variables
    • functions
    • conditions
    • lists
    • loops
      ...
    • classes
  • Very helpful and constructive feedback. Thank you.

  • capital(country_capitals)[0] is corrrect.

  • I hope u understand what I was trying to tell you

    I see your solution now, but didn't before.

    Now that I see your solution, I see what you mean. Given the use-case I had in mind when developing this kata, your solution should work.

    While the description does not explicitly state that only "regular" and "super" are supported ball types, perhaps it should.

    EDIT:

    Actually, I think you're correct, given the description. I'm not sure what a good course of action would be in this case, as, here are some of the scenarios I've thought of:

    1.) I could add tests to check that any other argument given is used. e.g. if "bouncy" is given as an argument, then ball_type must be "bouncy"
    2.) I could edit the description to say that only "super" matters, so any other ball type will be considered regular.
    3.) I could edit the description to say that only "regular" matters, so any other ball type will be considered super.

    Any of those three, that I've so far thought of, would potentially break some current solutions.

    Thoughts?

  • Would you consider creating a class in Python to be an 8 kyu problem?

    Is asking for a default parameter something that is more difficult than 8 kyu, in your opinion?

    I know that authors don't set difficulty level. This is irrelevant.

    It is relevant in that you are asking here, in my opinion.

  • Javascript: Needs more testing.

  • in the check test at the right bottom side of the screen the element [0] is after (), should be inside like this: capital(country_capitals[0]) ;
    in the test it is: capital(country_capitals)[0]

  • Loading more items...