]> git.sesse.net Git - stockfish/commit
Initial work towards adjustable playing strength.
authorTord Romstad <tord@glaurungchess.com>
Tue, 4 Aug 2009 09:31:25 +0000 (11:31 +0200)
committerTord Romstad <tord@glaurungchess.com>
Tue, 4 Aug 2009 09:31:25 +0000 (11:31 +0200)
commita1096e55cfccd9700602287a15ac4051746db953
tree8d1568b3de97faecdfad130dc438319e914ef8d7
parentdad632ce5b075e8121bb783dec40d3c8fd4f5ffa
Initial work towards adjustable playing strength.

Added the UCI_LimitStrength and the UCI_Elo options, with an Elo
range of 2100-2900. When UCI_LimitStrength is enabled, the number
of threads is set to 1, and the search speed is slowed down according
to the chosen Elo level.

Todo:

1. Implement Elo levels below 2100 by blundering on purpose and/or
   crippling the evaluation.
2. Automatically calibrate the maximum Elo by measuring the CPU speed
   during program initialization, perhaps by doing some bitboard
   computations and measuring the time taken.

No functional change when UCI_LimitStrength is false (the default).
src/search.cpp
src/ucioption.cpp