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.
I did the same and it was very fun ;)
And for me..
At least, we've tried :)
Here is an adapted version of the JS snippet:
Works on my local environment.. If this works for you, then Unnamed is right - this is a bug on Codewars. You can report it as not being able to put unicode symbols in the source code.
And again - thanks for your effort!
I haven't created any Katas, so I don't know the limitations with encoding and everything.. But for my local tests, I simply do this:
The file is saved as UTF-8.
If this doesn't work for you, then probably there is something with encoding of the source code, or the console output.
Thanks for trying this!
In the output, how about using chess unicode symbols instead of simple letters? (at least for Java; I didn't see the output for other languages)
Here is how they look: ♔ ♕ ♖ ♗ ♘ ♙ ♚ ♛ ♜ ♝ ♞ ♟
Well, as long as you're aware of the situation, it's ok :) Thanks for your reply!
Just in case: for my local tests, I've used JUnit parameterized tests (https://github.com/junit-team/junit4/wiki/parameterized-tests).
Wow, this kata is great. Solved it in Java.
Do you think it would be possible to show all the failed tests? Meaning that there is no need to interrupt tests if there are some failures.
Because this is what happens now:
If I had seen all the failed tests beforehand, it would have been a bit easier to come up with better algorithms.
Other than that, it was SUPER fun. Thanks a lot!
Great Kata. Maybe you could create a series? "Ranking Poker Hands" -> "Sortable Poker Hands" -> ...
If not, you could just mention "Ranking Poker Hands" in the description so people can start from there.
The Java version doesn't work. Even if I attempt with a simple "return 0", I get an exception:
Error: Command failed: javac -verbose -cp /home/codewarrior -d /home/codewarrior -sourcepath /home/codewarrior -cp /usr/local/groovy/lib/junit-4.12.jar:/usr/local/groovy/lib/hamcrest-core-1.3.jar /home/codewarrior/Keypad.java /home/codewarrior/KeypadTest.java ./frameworks/java/CwRunListener.java
[parsing started RegularFileObject[/home/codewarrior/Keypad.java]]
[parsing completed 30ms]
/home/codewarrior/KeypadTest.java:64: error: unmappable character for encoding ASCII
assertEquals(1, Keypad.presses("A,!??$@:"));
/home/codewarrior/KeypadTest.java:64: error: unmappable character for encoding ASCII
assertEquals(1, Keypad.presses("A,!??$@:"));
[parsing started RegularFileObject[/home/codewarrior/KeypadTest.java]]
[parsing completed 14ms]
[parsing started RegularFileObject[./frameworks/java/CwRunListener.java]]
[parsing completed 2ms]
[total 104ms]
2 errors
So it is impossible to submit a solution at this point.