Ad
  • Custom User Avatar

    Nice!

    Silly but TBH its nice to see weird ways of doing something for beginers like me!

  • Default User Avatar
  • Default User Avatar

    From what I can see, you are trying to pop fourth item in "sausage_row" which only has three items (in the first sample test).

  • Default User Avatar

    The intention is that you don't know all types of sausages that exist, so you have to identify them using their packaging (and as natan wrote, other specifics of a good sausage package). All of the necessary info is in the Kata's description.

  • Default User Avatar

    there is a problem with interpreter.
    i use vscode and my code works on it, but it doesnt work in here

  • Default User Avatar

    Maybe you're testing the wrong things. Look at how the description specifies good sausage and test that.

  • Custom User Avatar

    I think all the types of sausages should be displayed in the problem statement.
    In my case, I only found all the types of sausages from the automated tests, after having written a solution for it.

    So, this:
    "Straight sausages I, curvy sausages ), even twirly sausages @ and many more."
    Should say:
    "Sausages may be represented as such: "@" , "I" , ")" , "║" , "l" , "1" , "(" , "|" , "¦" . "

    Cheers,
    Razvan Boboc

  • Default User Avatar

    Thanks for the info about if blocks, I didn't know those existed. I've chosen tuples for boxes really just for the expressivness that Python enables here (and readability) without initially really considering a lower common denominator for other languages as well.

  • Default User Avatar

    Glad you've enjoyed it, thanks for the translation.

  • Custom User Avatar

    Rust translation kumited! :-)

    That was a fun kata, thanks.

  • Default User Avatar

    Yeah. Never expected a reward!

  • Custom User Avatar

    Fifth undamaged pack was used as your reward and was therefore excluded from the output

  • Default User Avatar

    JS

    expected 'I I I I l l l l 1 1 1 1 @ @ @ @ | | | | ║ ║ ║ ║' to equal 'I I I I l l l l 1 1 1 1 @ @ @ @ ║ ║ ║ ║'

    Do you hate thin ones or what ?

  • Custom User Avatar

    You could use if-blocks ( and if-not-blocks ) per language, but they lack the defaulting of codeblocks ( though they do support targeting multiple langauges, which codeblocks do not ). if-blocks can include normal text and markup. But they are a pain to maintain for multiple languages. See Markdown Formatting -> Optional Section Formatting if you're interested. ( I have kata that use this up to 13 languages. Getting all the translators to get it right is a major PITA. Don't even get me started on kata that have to allow multiple solutions. )

    What you have now will do just fine.

    It's water under the bridge for the Python truck datatype, but in an ideal world authors would consider other languages when designing their datatypes. Then again, you might end up at the lowest common denominator and lose possible expressiveness in any particular language. I also gather Python tuples are immutable, which for kata design is an advantage and does not transfer to ( all ) other languages anyway. But a consistent datatype across languages would also have had its benefits of course.

  • Custom User Avatar

    Please mention which language you're having this problem with, properly markup your code and spoiler your post ( this was done, but I don't know if you did it ).

    This greatly improves your chances of getting a useful answer. Help us help you!

    There is available documentation on Troubleshooting your solution. You obviously did not read that. Have a look at the Wiki.

  • Loading more items...