Ad
  • Custom User Avatar
  • Custom User Avatar

    This description was beyond confusing!

    This is how it should be written:

    1. Create a Base-Class/Parent Prototype and name it Human with attribute of name.

    2. Create Two Child Prototypes/Subclasses from your base class Human, using inheritance. Rename your new Child Prototypes/Subclasses; Man and Woman.

    3. Define an object named God with a method named, create. Within the create method, instantiate new objects of Man and Woman using
      your inherited Classes. Within your God object, return an array with a length of 2, containing your newly created Man and Woman.

    4. Alternatively, you may add to the original God class and redefine the create method.

    Considering the categorization as 8 kyu and we cannot change the difficulty, it is safe to assume beginner's have no experience creating objects or are familiar with OOP principles.

    Therefore, it is important to discuss more important discription info here because of such an incomprehensible design by the author.

  • Custom User Avatar

    Ruby: no random tests

  • Custom User Avatar

    python:

    • no random tests
    • missing important assertion messages
    • missing new test framework
  • Custom User Avatar
  • Custom User Avatar

    JS: No random tests

  • Custom User Avatar
  • Custom User Avatar

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

  • Custom User Avatar

    no non-char test code?so i don't what your non-char characters,and the rule
    what a waste of time......

  • Custom User Avatar

    Something fishy is going on with the test cases on submit:

    finalSearchTestRareCases(WildsTest)
    expected:<0> but was:<-1>
    nonCharTest(WildsTest)
    expected:<0> but was:<-1>
    

    So I made a single change in my code, I now return 0 on non-match to see what it reports:

    finalSearchTestRareCases(WildsTest)
    expected:<-1> but was:<0>
    nonCharTest(WildsTest)
    expected:<11> but was:<0>
    

    What is going on here?!
    Are the test strings pseudo randomly generated with the hash of my code as the seed?

  • Custom User Avatar

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

  • Custom User Avatar

    i have completed unit tests successfully but if i submit them to server i get unknown error.
    does that mean i get infinite loop or something? thanks

    edit: i am using java

    edit: i have solved the issue. it is because i have code that looked like this

    if (blahblah // some comment
        || blehbleh ) { // another comment
        some_statements();
    }
    

    i fixed it by having if construct terminate properly before commenting.

  • Custom User Avatar

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

  • Custom User Avatar

    I would either expand on the description describing specifically what needs to be accomplished or perhaps add the stubbed out construstor and secret number field. With out this information the kata starts off more as a guess and check to figure out what needs to be accomplished rather than trying to actually solve the problem.

  • Custom User Avatar

    This is too vague:

    1. It's hard to tell what you want (at first I thought you wanted a game solver). The usage of "you" throughout the description is the main culprit, it's ambiguous whether "you" means the person writing the solution, or the person playing the game.
    2. There's too little feeback when something goes wrong.
    3. The phrase "between 1 and 10" is too ambiguous. You need to specify whether this is inclusive (1, 2, 3, ..., 10]) or exclusive ([2, 3, ..., 9]). Technically, between 1 and 10 means "only 2 through 9, inclusive."
    4. Some example test cases would go a long way to helping here.
  • Loading more items...