2 ms·
Check != Checkmate. Also you need to find the king before you can do that. And all the other pieces that protect the king. The problem is far more complicate
by binarymax 7y ago
Check != Checkmate. Also you need to find the king before you can do that. And all the other pieces that protect the king. The problem is far more complicated than "throw this algorithm at it".
I recommend playing several games with someone else, and then rethinking your assessment.