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.
False should equal None
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.