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.
What I have edited:
I used chess.com to create the images of the board
Great job! What did you use to create the images of the boards?
Minor editing suggestions:
Replace "b is ..." by "The board is ...."
Replace ""W" representing the WhiteKing" by ""W" representing the white king".
Replace ""0" representing a square with no pieces on it" by ""0" representing an empty square".
Replace "if the black king is in checkmate return true and false otherwise."
by "Return true if the black king is in checkmate and false otherwise."
I recommend changing the parameter name in the Initial Solution from b to board. Encourage the use of descriptive variable names!
It would be nice if the sample tests showed example of all the various cases: not check, check but king can escape, check but king can capture queen, & mate. Even better would be if the random tests were subdivided into those different types - this would help with debugging.
There are related problems, like Check and Mate? and Is the King in check ?. But by simplifying the board I think you have added something.
Badly written description with multiple typos and formatting (minor issue)
Ah I see how that is a bit confusing now, ill change it so that its easier to understand
It says "It is always whites move", which I took to mean it's white's turn next.
Thank you. I am glad you liked it.
It says in the description it is always whites move
Is this Kata based on black not having turns?
Consider this case:
White's only option is to move forward. Black then has to either move forward, or take white. In either case there's no way for White to get around the wall
Nice kata
fixed
This comment is hidden because it contains spoiler information about the solution
approved
Ok, if there's any issues, let me know.
Idk this language so if any issues arise I will need help to fix them.
I'm gonna assume this is all ok
Prolog translation
Loading more items...