Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draw by timeout #410

Open
gahtan-syarif opened this issue May 17, 2024 · 5 comments
Open

Draw by timeout #410

gahtan-syarif opened this issue May 17, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@gahtan-syarif
Copy link
Contributor

Screenshot 2024-05-18 040204
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

@gahtan-syarif
Copy link
Contributor Author

i guess this is more of a chess-library pr but ig can be posted here too :p

@Disservin
Copy link
Owner

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

@gahtan-syarif
Copy link
Contributor Author

i think the function exists within chess lib's board.hpp, in fastchess it extracts the data from the board object

@gahtan-syarif
Copy link
Contributor Author

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

@Disservin Disservin added the enhancement New feature or request label Jul 16, 2024
@gahtan-syarif
Copy link
Contributor Author

apparently, theres also a draw by disconnect in cutechess

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants