First, I'm using lichess's official Python driver, for a UCI engine I use Stockfish 9, so everything is relative to this ( github.com/careless25/lichess%2dbot , stockfishchess.org/download/ ).
I don't know if the driver has any support for setting UCI options, nevertheless you can set any option in main.py, in the setup_engine function like this ( after the engine.uci() command ):
engine.send_line("setoption name [option name] value [option value]")
You should naturally make use of all cores, so something like
engine.send_line("setoption name Threads value 8")
is helpful.
I have also found that against a strong opponent a low contempt factor may help, because the engine will look at every opportunity to secure a draw. I have used this strategy with success against a 200 points higher rated opponent and scored many quick draws:
engine.send_line("setoption name Contempt value -100")
I have also implemented a strategy so that when time falls below 15 secs, I send an understated clock time for my own engine ( currently I use 60% factor for this ). This makes the engine move quicker and it is less likely to time out.
I don't know if the driver has any support for setting UCI options, nevertheless you can set any option in main.py, in the setup_engine function like this ( after the engine.uci() command ):
engine.send_line("setoption name [option name] value [option value]")
You should naturally make use of all cores, so something like
engine.send_line("setoption name Threads value 8")
is helpful.
I have also found that against a strong opponent a low contempt factor may help, because the engine will look at every opportunity to secure a draw. I have used this strategy with success against a 200 points higher rated opponent and scored many quick draws:
engine.send_line("setoption name Contempt value -100")
I have also implemented a strategy so that when time falls below 15 secs, I send an understated clock time for my own engine ( currently I use 60% factor for this ). This makes the engine move quicker and it is less likely to time out.