PanagiotisIatrou / chess-auto-bot

A bot for chess.com and lichess.org that automatically plays chess for you
MIT License
72 stars 26 forks source link

Realistic time management #24

Open Vaksoa opened 1 year ago

Vaksoa commented 1 year ago

Hey! This is another idea I have. Essentially it'd be a togglable option that allows an engine to realistically control the time it has. This could be influenced by a number of factors, including but not limited to:

Of course, there can be a lot more factors, but it'd be interesting to see how this would behave since it'll allow for a lot more realistic timed games which current bots lack.

OleKroner commented 1 year ago

Time-management is handled by stockfish internally. It is quite simple to implement.

All you have to do is to pass Whites remaining time, Blacks remaining time, Whites move-increment per move and Blacks move-increment per move as parameters to the get-move function and then stockfish will automatically handle time-management. If you want the bot to play faster or slower, then you can decrease or increase the slow-mover setting, which tells stockfish how fast it should play.

akhil3417 commented 1 year ago

i tried increasing beyond 1000ms no difference , still plays at same speed