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 for your answer.
Yes, it was my fault.
I need to be attentive to details.
It's
expected your answer to equal expected answer
, so the expected value in the error message is 1 not -1. -1 is the value your function returned. Not a kata issue.[[1,1,1],[0,2,2],[0,0,0]]: expected -1 to equal 1.
The test expects -1, although the correct answer is 1.
Might just be me but I didn't think it was very clear that the input could have variable length rows & columns, and that the expected behaviour of "wrapping around" would be from e.g. index 8,10 to 7,6 when moving up if 7,6 is the furthest out index in that row. Could perhaps be made more explicit that this is the case.
lack of random testing
so once i removed the prints everything worked fine:P
This comment is hidden because it contains spoiler information about the solution
would it not also be a cat's game(no win con) before all tiles has been filled?
eg: [[1, 2, 2], [2, 1, 1], [0, 0, 2]]
Java traduction
Nice kata!
approved
Haskell translation
done for Ruby, Python done here
fixed, the boards can no longer have two winners or players skipping their turns
Merged
Loading more items...