Answers.Body: <p>There's a &quot;temperature&quot; setting for Leela that does this. See <a href="https://lczero.org/dev/wiki/lc0-options/" rel="nofollow noreferrer">the description on the Lc0 website</a>.</p>
  <blockquote>
  <p>Temperature: Tau value from softmax formula for the first move. If equal to 0, the engine picks the best move to make. Larger values increase randomness while making the move. Default value: 0.00 Minimum value: 0.00 Maximum value: 100.00</p>
  </blockquote>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-01-03T07:33:25.340Z
Answers.Text: THX. So I recalled that correctly.
Answers.UserDisplayName: Hauke Reddmann
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-01-02T09:47:58.017Z
Answers.LastActivityDate: 2024-01-02T09:47:58.017Z
Answers.UserDisplayName: Allure
Body: <p>Of course a real playing-the-next-best-move engine is silly,
  it fouls up at the first trade. (Also, sometimes only one legal move
  is possible.) Thus, my idea: It sets a cutoff instead and plays
  the best moves with values &lt; v. (This could also work for a neural net
  engine, since it has a winning expectancy which could be used).</p>
  <p>Has this been tried for fun? With different values of v? (This could be
  interesting: at which v the position will get worse ultimately? -1 PU?)</p>
  <p><a href="https://chess.stackexchange.com/questions/34967/looking-for-a-chess-engine-that-instead-of-playing-the-best-move-randomly-choose">Comparable</a> but not exactly the same.</p>
  
Tags: <engines>
Title: Next-best-move engine
ThreadText: # Next-best-move engine
  
  (Asked by: username_0 on 2023-12-28)
  
  Of course a real playing-the-next-best-move engine is silly,
  it fouls up at the first trade. (Also, sometimes only one legal move
  is possible.) Thus, my idea: It sets a cutoff instead and plays
  the best moves with values < v. (This could also work for a neural net
  engine, since it has a winning expectancy which could be used).
  
  Has this been tried for fun? With different values of v? (This could be
  interesting: at which v the position will get worse ultimately? -1 PU?)
  
  [Comparable](https://chess.stackexchange.com/questions/34967/looking-for-a-chess-engine-that-instead-of-playing-the-best-move-randomly-choose) but not exactly the same.
  
  **Tags:** engines
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-01-02. Score: 1
  
  There's a "temperature" setting for Leela that does this. See [the description on the Lc0 website](https://lczero.org/dev/wiki/lc0-options/).
  
  > Temperature: Tau value from softmax formula for the first move. If equal to 0, the engine picks the best move to make. Larger values increase randomness while making the move. Default value: 0.00 Minimum value: 0.00 Maximum value: 100.00
  
  > **Comments:**
  > **username_0**: THX. So I recalled that correctly.  
  
  ---
  
  