Our chess game project uses chess.uci
and the stockfish engine. We used engine = chess.uci.popen_engine("/some_address/stockfish")
to start an engine. However, I want to know if there is a way to change this engine's skill level. Could I achieve that by passing parameters to engine.go()
? I saw there are options such as movetime and depth. Some Stack Overflow post says that there is a "skill level" option in stockfish but I didn't find it. What I want to achieve is to match the engine's skill to the player's skill. Thanks!
use chess.uci to change stockfish skill level
1.6k Views Asked by Jim Yang At
1
Have you read the documentation? It is all in there.
Here is an example from the documentation on how to limit the level given it a fixed amount of search time: