Ad
  • Custom User Avatar

    Corrected all comments and problems!

  • Custom User Avatar

    I propose to complicate the kata with double encryption after the first encryption +1 calculate the number of letters encrypt the message +n

    first option
    n = len([хь, о, м, у, х, в, у]) % 49
    input хьо мух ву >> х1оь нуьхь гуь >> ъу тчщ ич
    

    if the letter length is even, first +n then +1 encryption

    second option
    n = len([хь, о, м, у, х, в, у, 1]) % 49
    input хьо мух ву >> ъу тчщ ич е >> 1ч цюяь ню къ
    
  • Custom User Avatar

    Did you change anything since the previous kata?

  • Custom User Avatar

    Ah yes, it got automatically retired in the meantime.

    The kata wasn't bad itself, the problem was it being too close to a lot of existing kata.

    Cheers.

  • Custom User Avatar

    status "Retired". I won't be able to publish this Kata anymore

  • Custom User Avatar
    • you could use one single it block for all the fixed tests
    • the random tests still aren't using any it block => replace the describe one with a it
  • Custom User Avatar

    I already regretted that I decided to create a new Kata :D. I don’t know English well, so reading the documentation is a little problematic. Thank you! :D

  • Custom User Avatar

    This one does not seem to be solved: "Assertions should be inside @test.it blocks." Remember that in Python tests, the correct structure is @describe (optional but recommended) ==> @it ==> assertions.

    It would be much, much easier if you read documentation, checked example kata, and asked for help with creating a kata on Codewars Discord. You would not have to go through all the problems you have.

  • Custom User Avatar
  • Custom User Avatar

    solved

  • Custom User Avatar

    Hi,

    To me, it's way too close to any other substitution cypher kata, sorry (hence the vote)

    Otherwise:

    • The full test suite should also contain fixed tests (at the very least, the sample tests should be duplicated there)
    • Assertions should be inside @test.it blocks.
    • The tests shouldn't print anything to the console. The message of the @test.it block could be used to display the message
  • Custom User Avatar

    Are you sure? My hardcoded solution still passes all tests.

  • Custom User Avatar
  • Custom User Avatar

    This task is already marked as "Retired". I can't republish it anymore. I'll create it again! Thanks for your help

  • Custom User Avatar
    • Your random tests do not work, I used a hardcoded solution and passed.
    • Example tests have no @test.describe, and they have an indentaiton error.
  • Loading more items...