Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Ruby translation kumited, please check and approve :-)
Better test formatting would be appreciated in Python.
ALL LANGUAGES except Python:
There should be a sample and fixed test with empty deck
Random tests should use decks of random length
Description should be language-agnostic
CS is inconsistent with other languages,
Expected: [undefined], instead got: []
This comment is hidden because it contains spoiler information about the solution
Hi guys, I have a small problem here. My code basically works for short messages and cards, but it does not work for example for the message "ATTACK TONIGHT ON CODEWARS". So I guess my algorithm is somewhat slow, however I used to create a generator with itertools to calculate all the permutations of the cards, which in my opinion should be actually very fast, it is at least when cracking hashes on other katas. Am i missing out something? I can post the part of my code if this is helpful...
It was a nice kata! Some issues in Python:
snake_case
for function name, notcamelCase
(seeprintDeck
)You could have used a deck several times by giving message to functions instead of giving it to the constructor.
It is easier to test and to understand encoding process.