Closed vladmandic closed 2 years ago
For information, I've added some unit tests (see in particular in file /test/resources/positions.csv
, rows Low material *
), and I had to modify your implementation of isDead()
to make them work, especially in situations with several same-colored bishops (e.g. king + 2 same-colored bishops vs king is a dead position).
Public API is unchanged compared to the PR.
adds method to detect insufficient material to end game in checkmate under both FIDE and USCF rules.
further notes in previous version of the pr #34