lichess-bot-devs / lichess-bot

A bridge between Lichess bots and chess engines
GNU Affero General Public License v3.0
764 stars 448 forks source link

Liches Variants #857

Closed partharor closed 1 year ago

partharor commented 1 year ago

I Make My Bot play variants but in CMD it says, Unexpected engine output: 'info string Found 0 tablebases. Please Help.

AttackingOrDefending commented 1 year ago

This shouldn't cause the bot to crash. If you don't have tablebases for any variant you can comment out the line SyzygyPath: "./syzygy/" in config.yml.

MarkZH commented 1 year ago

This might be related to this bug in python-chess: https://github.com/niklasf/python-chess/issues/1049

Try removing info string output before a game starts.

partharor commented 1 year ago

This shouldn't cause the bot to crash. If you don't have tablebases for any variant you can comment out the line SyzygyPath: "./syzygy/" in config.yml.

What Does Comment Out mean?

MarkZH commented 1 year ago

Put a hash mark # at the beginning of that line. It will cause the line to be ignored by lichess-bot. The line would look like this:

# SyzygyPath: "./syzygy/"
partharor commented 1 year ago

Put a hash mark # at the beginning of that line. It will cause the line to be ignored by lichess-bot. The line would look like this:

# SyzygyPath: "./syzygy/"

I have done it But it now says " Backing off play_game(...) for 3.5s (chess.engine.EngineError: engine does not support UCI_Variant)" I am using Stockfish.

AttackingOrDefending commented 1 year ago

Stockfish doesn't support playing variants. You can use Fairy-Stockfish instead.

partharor commented 1 year ago

Stockfish doesn't support playing variants. You can use Fairy-Stockfish instead.

Thanks