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.
Thanks for the clarification.
thanks, fixed!
Sample tests still uses
validCheckmate
instead ofvalid_checkmate
.done!
I think I have fixed all of them
Thanks for feedback, working on it!
Thank you for finding this, working on fixing ASAP
This comment is hidden because it contains spoiler information about the solution
I don't understand the results of the following five "Edge cases" as I believe in all cases that the Black King is in checkmate.
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['Q', 'W', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', 'B', '0', '0', '0', '0', '0', '0']
Black King= [7, 1] White King= [5, 1] White Queen= [5, 0]
True should equal False
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', 'Q', '0', '0', '0', 'W', '0']
['0', '0', '0', '0', 'B', '0', '0', '0']
Black King= [7, 4] White King= [6, 6] White Queen= [6, 2]
True should equal False
['0', '0', '0', '0', '0', 'B', '0', '0']
['0', '0', '0', 'W', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', 'Q', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
Black King= [0, 5] White King= [1, 3] White Queen= [2, 6]
True should equal False
['B', '0', 'W', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', 'Q', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
Black King= [0, 0] White King= [0, 2] White Queen= [2, 1]
True should equal False
['0', '0', '0', '0', 'B', '0', '0', '0']
['0', '0', 'W', '0', '0', '0', 'Q', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
['0', '0', '0', '0', '0', '0', '0', '0']
Black King= [0, 4] White King= [1, 2] White Queen= [1, 6]
True should equal False
There seem to be some invalid test cases:
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The discription mixes "space" and "whitespace" in an unclear manner.
yet
I suppose it depends on context, but from a regex perspective, I would assume "whitespace" refers to
\s
. I would just change everything to "spaces" for clarity.lol
not a good practice as we are splitting the string and indexing it at each iteration while it can be done only once
Loading more items...