Ad
  • Custom User Avatar

    It is a duplicate of what other kata, exactly?

  • Custom User Avatar

    This is duplicate kata , I solved same kata 2 day ago

  • Custom User Avatar

    Duplicate

  • Default User Avatar

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

  • Custom User Avatar
  • Default User Avatar

    I agree the problem itself is trivial. The bonus in the description adds a small layer of puzzle-like complexity. However whatever complexity this adds has less to do with knowing how to write code than it does finding clever ways to compute the upper section in Yahtzee.

    Also, I like your profile picture, is that from Neverhood?

  • Custom User Avatar

    This kata does feel like a trivial task, embellished by a somewhat nice story. Are we sure this isn't a duplicate?

  • Default User Avatar
  • Default User Avatar

    In the description for this kata you provide the following example:

    For input [2, 3, 3, 4, 2, 3, 2]:

    Ones: 2 => (1 * 2 = 2)

    Twos: 3 => (2 * 3 = 6)

    Threes: 3 => (3 * 3 = 9)

    Fours: 4 => (4 * 4 = 16)

    Fives: 2 => (5 * 2 = 10)

    Sixes: 3 => (6 * 3 = 18)

    Total: 2 + 6 + 9 + 16 + 10 + 18 = 63/63

    Result: Pass

    The input array in this example contains 7 values, not the 6 that were expected.

  • Default User Avatar

    Thank you for pointing that out.

  • Custom User Avatar

    What are you trying to say anyway? That's a whole load of nothing burger and empty threats. If you have nothing better to say, you know, you can shut up and not say anything in the first place. Surely your discord is already tired in another round of "I don't like Voile" posts? At this point it's just stale and tiring.

    Besides, that's assuming someone is actually enforcing those things in these first place. The beta process was been in flames for many years and nothing was actually enforced. Hostile kata authors can still try to silence everyone they don't like to post comments on their katas by blocking them. I don't believe anyone in CW have the authority and position to resolve any actual community conflicts, so if anything you're just a bunch of toothless tigers.

    In the end, look, if you aren't deserving to be respected, that's your problem. I'm not supposed to babysit you, and pretending you're a baby that needs attention and special treatment. That's why I tell you to touch grass; in the internet, everyone is a stranger to you, and doesn't owe you anything. Citing the CoC just to yell at people not being nice is, frankly, the most virgin behaviour one can do.

  • Custom User Avatar

    OK, now this

        for (let i = 0; i < rolls.length; i++){
          let roll = [...rolls[i]]
          assert.deepEqual(isPassingUpper(roll), isPassingUpperTester(rolls[i]), `For input [${roll}]`);               
    

    needs changing to

    for ( const roll of rolls )
      assert.deepEquals( isPassingUpper([...roll]), refIsPassingUpper(roll), `roll(${ JSON.stringify(roll) })` );
    

    ( m.m., please keep thinking for yourself, and [ correctly ] assuming the reference solution doesn't mutate its inputs ).

    Note that the issue was not completely solved ( mutating inputs will still lead to an inaccurate failure message ), but you closed it anyway. Please don't do that. I'm not bothering to reopen it, but unless you're sure the issue has actually been resolved, keeping it open and asking for confirmation is not a bad thing.

  • Default User Avatar

    Adjusted tests to be randomized.

  • Custom User Avatar

    Non-random tests are vulnerable to input modification.

    Also, needs random(ised) tests.

  • Default User Avatar

    The only thing on CW that can be considered "content", as in, "have any worth", is the katas. The rest, including whatever community that might exist, is, frankly, pretty garbage...

    Only reason I'm continuing this thread at this point is to add that the members of the CodeWars community helped me learn how to author my first Kata. Just because it has no worth to you doesn't mean it has no value.

  • Loading more items...