Disservin / fastchess

fastchess is a chess cli tool to run engine vs engine matches
MIT License
80 stars 21 forks source link

insufficient material for position with two bishops of the same color and two kings #604

Closed gahtan-syarif closed 2 months ago

gahtan-syarif commented 2 months ago

Screenshot 2024-07-17 224115

this position is a draw by insufficient material as both bishops are on the same color, cutechess correctly marked the position as a draw but fast-chess did not

Disservin commented 2 months ago

ah missed that when initially writing this, wikipedia is missing this case https://en.wikipedia.org/wiki/Draw_(chess)#:~:text=insufficient%20material%20to%20checkmate%20include%3A

just needs another check here

https://github.com/Disservin/chess-library/blob/master/src/board.hpp#L658