lichess.org
Donate

Participants of the 2nd Lichess Bots Championship

I'm in.

Might help though if someone can help me with this...
If my opponent times out in a game, then I keep waiting for them to play a move and rejecting any new challenges. What's the little signal in the Lichess API that my Javascript is failing to react to that signals the game is over?

If I can fix that then it should be easy to get my games played by just leaving my engine online.
Sidonia, Lichess will send a quit command to your engine when the game is over. Your bot should exit the program when it receives the quit command. Hope that helps. If it's not that then I'm not sure.
@RavenEngine wrote:- Sidonia, Lichess will send a quit command to your engine when the game is over. Your bot should exit the program when it receives the quit command. Hope that helps. If it's not that then I'm not sure.

I have just looked at the stream I am receiving and the last message I have received seems to be like this ...

STREAM data : {"type":"gameState","moves":"e2e4 e7e5 f1c4 b7b6 g1f3","wtime":294
00,"btime":17390,"winc":10000,"binc":10000}

... showing the last move my BOT played before the opponent timed out.

I have also looked at the Lichess API documentation
lichess.org/api#operation/botGameStream
and I don't see a QUIT message there.

Do I need to periodically poll the Lichess API to see if the game is over? E.g. using
lichess.org/api#operation/gamePgn
In order to process a game you continuously listen on lichess.org/api#operation/botGameStream, and the end of the game will be signaled by the interruption of that flow. In C# this can be done by opening the stream and reading it continuously and asynchronically, and its end will be captured automatically when the reading is null. Your javascript must be designed to be able to intercept the interrupt of that stream. I hope this has been helpful.
The participants are currently:
@AMemeBot
@AttackingOrDefending
@Bottios
@ChesserCloneBOT
@darkb0t
@DissidentAggressor
@FlamingDragon_9000
@haibrid_bot
@Hoplites
@II_StockfishStudy
@KYsokochAge17
@LeelaChess
@LeelaFisher
@less_than_one
@MCyborg
@Minic-chess_engine
@mrohBOT
@noobpwnftw
@PolyBOT
@PyChessBot
@RavenEngine
@RobbAi_3J
@Sidonia-ChessEngine
@Sugarbot-raspi3
@SwitchBOT
@TMFish
@Vetinari_Computer

Do you also want to participate with your bot or are you mentioned here while you don't want to participate, please reply here within the next couple of hours. The tournament is starting tomorrow and I feel honored that these great bots are willing to participate.

This topic has been archived and can no longer be replied to.