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 noticed that the kata was retired but I do not see who retired it. Can contributors retire a Kata?
Why should False equal None? If it is not a check-mate, shouldn't it be False?
I have added edge cases which are more likely to create conditions that will yield True.
Thank you for fixing that.
Update(5:20pm PST, 7/2/20)
I have simplified the code and added more test cases that possibly yield a true result. I am also discovering more edge cases that I will need to take care of:
1- (SOLVED) None of the three pieces ever occupy the same exact board coordinate in the test cases. (reassigned random coordinates until the coordinates were different)
2- The black king can capture a rook if they are close and avoid the check-mate, causing the result to be False, even if the other conditions are met. Therefore, I need to add a condition to check the proximity of one or two of the rooks to the black king, and also check if the other rook still poses a check case after the first rook is captured.
3- Must account for situations where the previous move would have to have been a check condition, therefore the current board composition would not be possible.
This is my first kata authoring attempt. I have done some research and tried to figure out how to make random test cases. I will appreciate some feedback whether they are working fine.
I also would like to trigger an error if the attempt invoves placing any two or more pieces on the same coordinate on the chess board. How can I do that? I can write the condition for that, but I do not know what to write to create an error for this.
Thank you for the feedback. I need to figure out how to add random tests. This is my first kata making attempt :)