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.
Thank you, it was really a great Kata!
The tests for preconditions were annoying, though. I'd prefer no invalid inputs in the big test cases.
Thanks, for some reason I was assuming straight directions only.
This was the real input during the random test:
In Java
Right now the random test is failing. But it seems to expect a wrong solution:
In this example, the random test ist expecting only 1 field with maximum depth of 3 (indizes: 2, 3, starting from upper left corner). My code return 2 fields. As far as I understood the description, it should be 2. Can someone help pls?
Thank you.
Test keeps telling: arrays first differed at element [0]; expected:<55> but was:<1836311903>
It works correct on my machine.
Any ideas? (java)
This comment is hidden because it contains spoiler information about the solution
My solution passed, but does not work properly:
my hand "7C 7S 2S 2H AH" wins against "KC KH 5D QS QC".
A test is missing for this case I guess.
Yeah, thats true. I was considering "Strings with one word do not need gaps ('somelongword\n')." In this case the word has the same length as the width then.
Somewhere in your justified text there is probably something different to what is expected...
There is a test missing, which covers the rule with long words (bigger than width)
Stack is synchronized, which is not needed here. Use Deque instead.