@Katzenschinken said in #32:
> Didn't see your post when I posted mine. So as I understand it "UCI_Elo" and "UCI_LimitStrength" were not used, were they?
I believe that is currently correct. Lichess seems to be using the UCI option 'Skill Level' and other means to weaken Stockfish.
See these and further down in that code where the variables LVL_MOVETIMES and LVL_DEPTHS are used to set things up for the "go" command.
github.com/niklasf/fishnet/blob/53e218bd184554265748513f85d19e601f18c310/fishnet.py#L117-L119github.com/niklasf/fishnet/blob/53e218bd184554265748513f85d19e601f18c310/fishnet.py#L818So I think the 1-8 'level' is used to index into these:
LVL_SKILL = [0, 3, 6, 10, 14, 16, 18, 20]
LVL_MOVETIMES = [50, 100, 150, 200, 300, 400, 500, 1000]
LVL_DEPTHS = [1, 1, 2, 3, 5, 8, 13, 22]
Edit: This is an old blob. Looking for the current code.
The new code seems to work in similar fashion, though now the SF range of levels extends to negative values!
github.com/niklasf/fishnet/blob/master/src/api.rs#L221-L270The move times remain the same as above. The skill is mapped as [-9, -5, -1, 3, 7, 11, 16, 20].
The depth is now mapped as [5, 5, 5, 5, 5, 8, 13, 22].