Skip to content

Argument of st command for xboard engine #1211

Description

@se-sss

Hello!
Playing with my little own chess engine.
It is initially for winboard.
Winboard sends command "st N" where N is number of seconds per move.
And winboard stops game if move was not done on time. (Need to go to settings to turn that on).

A few days ago I launched my engine with lichess bot.
And it always sends "st 10.0" indepentently of game total time limit from lichess.
10 seconds per move limit is too severe restriction for 15 minuted game.

lichess-bot uses python-chess.
I thin that this issue traces back to line
self.engine.send_line(f"st {max(1, int(limit.nodes))}")
in engyne.py.

limit.nodes? Why nodes?

Quote form zboard docs:
" The command to set an exact number of seconds per move looks like this:
st 30
This means that each move must be made in at most 30 seconds. Time not used on one move does not accumulate for use on later moves. "

Sorry I not good in python to suggest any changes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions