lichess-bot icon indicating copy to clipboard operation
lichess-bot copied to clipboard

Allow "engine debugging" to be enabled.

Open folkertvanheusden opened this issue 2 months ago • 5 comments

Type of pull request:

  • [ ] Bug fix
  • [X] Feature
  • [ ] Other

Description:

This change allows a developer to enable UCI/XBoard protocol debugging to be enabled. This helps debugging communication problems between lichess-bot and certain chess engines.

Related Issues:

[Reference any related issues that this pull request addresses or closes. Use the syntax Closes #issue_number to automatically close the linked issue upon merging.]

Checklist:

  • [X] I have read and followed the contribution guidelines.
  • [X] I have added necessary documentation (if applicable).
  • [X] The changes pass all existing tests.

Screenshots/logs (if applicable):

folkertvanheusden avatar Nov 06 '25 19:11 folkertvanheusden

Good idea. Just fix the errors in the tests. Namely, the Stockfish.__init__() method in test_bot/homemade.py (and all the classes Stockfish inherits from) needs to be changed to take a debug paraemeter.

MarkZH avatar Nov 07 '25 06:11 MarkZH

@MarkZH hi, I made the change. Could not find any other class that Stockfish inherits from. But pytest with the latest fix runs fine and it hangs without the fix so my guess is that it is now good?

folkertvanheusden avatar Nov 07 '25 07:11 folkertvanheusden

I forgot to mention, please add documentation to the config wiki page: wiki\Configure-lichess-bot.md

MarkZH avatar Nov 07 '25 07:11 MarkZH

I forgot to mention, please add documentation to the config wiki page: wiki\Configure-lichess-bot.md

Done!

folkertvanheusden avatar Nov 07 '25 07:11 folkertvanheusden

Can you fix the mypy errors?

AttackingOrDefending avatar Nov 16 '25 18:11 AttackingOrDefending