py-stockfish / stockfish

Integrates the Stockfish chess engine with Python (Official fork)
https://py-stockfish.github.io/stockfish/
MIT License
30 stars 9 forks source link

Consider error messages from Stockfish #29

Open kieferro opened 1 year ago

kieferro commented 1 year ago

The library doesn't check for warning/error messages in the output by stockfish. For example unknown commands:

Unknown command: 'foo'. Type help for more information.

or unknown options

No such option: Minimum Thinking Time

lead to warnings but are ignored. The second example is currently being set by the library but doesn't seem to work.

To ensure that all commands are processed well during for example the unit tests we should add an option to raise an exception when a warning occurs in the output of the engine.