Ad
  • Custom User Avatar

    Put it into the Brainfuck Visualizer.

  • Custom User Avatar

    This is not a good kata idea, period.

    Translating one language to another is itself already an nigh un-automatable job, not to mention this is translating from a phonetic language to a written language. What real people do with these is to manually decipher each word from the particles that vaguely pronounces into them by the surrounding phrase, not doing it programmatically. In fact, doing it programmatically is impossible: there are many words in English with the same pronounciation, which you cannot hope to be distinguished by phonetic representation.

    And you require user solution to translate almost half of a very large corpus to an exact result. What do you expect us to be, omnipotent gods? Not even the best neural networks (which are the best algorithms btw) can perform such translations with 100% accuracy. This is beyond unreasonable. I can also guarateed that the coded rules will easily break or translate incorrectly given words unseen before. (In fact, you already did. The last test want INDEPENDANTISTS when the correct spelling is INDEPENDENTISTS.)

    In short, the task being asked in the kata is impossible. So to pass the tests one will have to cheat somehow, somewhere.

    Also, I like how even the author solution says Even Finkel cheated in his alphabet as half of the sounds are not existing!. If the original decipherer needs to manually add tons of rules to cheat the relationship, there is no hope to making it a kata. Nobody shouldn't be forced to do the same kind of hacking.

    (Also, QAnon in the last test? WTF? Is the kata author drunk or something? Nobody should expect these kind of things to be translated correctly.)

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

    The kata does not provide enough rules on the task given, and the only link given with the rules (the Wikipedia article only lists the cuneiform signs) is to a website where the media explaining the rules is behind cookie wall (Please allow marketing cookies to view media). Please provide a different source.

  • Custom User Avatar

    Idiomatic in PL means "as intended by language authors", "according to idioms on which the language was designed". And because language authors usually know better how the language should work, idiomatic is good.

  • Custom User Avatar

    What does "idiomatic" mean? And why is it a good thing?

  • Custom User Avatar

    It's start:stop:step
    Here it means start at the 2nd element (index 1 in base 0) then take every other element (step of 2).

    stop is empty so default is until the end of the string.

  • Custom User Avatar

    could you please explain the slicing method st[1::2] ?
    Thanks

  • Custom User Avatar
  • Custom User Avatar

    I love seeing aaaanything to do with Unicode, even something as wild as this—will definitely try and solve later! Might brush up on my Sumerian cuneiform at the same time as well, haha!

  • Custom User Avatar

    Hello, I think there is a anomaly on the test case

    ooo$$$$$$$$$$$$$$$$$$
    --------------------$
    $-------------------$
    $-------------------$
    $-------------------$
    $-------------------$
    $-------------------$
    $-------------------$
    $-------------------$
    $-------------------$
    $-------------------$
    $-------------------$
    $$$$$$$$$$$$$$$$$$$$$
    18 D 12 L 20 U 12 R 5

    Indeed, the snake can turn around and grow as we have one space on the border, the head is never on the tail. it should be OK.
    Why to expect ((0, 5), 67) and not ((0, 5), 0) as all moves were successful?

  • Custom User Avatar
  • Custom User Avatar

    Make sure that Python 3.8 is selected. This kata does not work with Python 3.6.

  • Custom User Avatar

    Hello,

    I am not able to run the game

    I am getting the error
    Traceback (most recent call last):
    File "main.py", line 2, in
    import codewars_test as test
    ModuleNotFoundError: No module named 'codewars_test'

    I can remove the error from the test ... but not from the validation

  • Loading more items...