Open gahtan-syarif opened 6 months ago
i guess this is more of a chess-library pr but ig can be posted here too :p
How is this a chess lib thing ? Chess lib doesn’t know anything about time control and there is a public function for insufficient material check I think
i think the function exists within chess lib's board.hpp, in fastchess it extracts the data from the board object
yep https://github.com/Disservin/chess-library/blob/c45383444969339f5df1457dc4089a3a89d702a3/src/board.hpp#L639 the one in chess lib can only check if both sides have insufficient material, in this case one side is insufficient while the opponent can still mate
apparently, theres also a draw by disconnect in cutechess
apparently this is an actual rule, cutechess seems to already have this while fast-chess not yet (i think). probably would rarely if ever come up but might be worth implementing nonetheless