Answers.Body: <p>There is no mate in 4. Black's best move is 1...e1=Q, after which White goes 2. Bg2+ Kb8 3. a7+ Kc8 4. a8=Q+ with a decisive advantage, but no immediate checkmate. M14 is correct, White takes several moves after the promotion to mate.</p>
  <p>You might be seeing some issue with tablebases, since if Black's goal is to prevent the zeroing move as long as possible then 1...Kb8 is the best move.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-18T02:52:13.143Z
Answers.LastActivityDate: 2022-05-18T02:52:13.143Z
Answers.UserDisplayName: Allure
Body: <p>I'm interested to understand what is going on for Stockfish on Lichess here. There are only two legal moves for Black, and it gives the position mate-in-14 for white.</p>
  <p><a href="https://i.sstatic.net/vbGlh.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/vbGlh.png" alt="enter image description here" /></a></p>
  <p>When asked to play its recommended move (using Lichess &quot;practice with computer&quot;), it chooses Kb8 and gives the position mate-in-4 for white.</p>
  <p><a href="https://i.sstatic.net/PNoh1.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/PNoh1.png" alt="enter image description here" /></a></p>
  <p>I'm very surprised that it couldn't see the mate in 4 from one half move further away, given only two moves for black to consider. And especially given that the move it chose as the best for black was on the path to the mate in 4.</p>
  <p>Are there any insights that would help understand its miscalculation?</p>
  <p>(Hmm, actually maybe what is going on is it's actually mate in 14, but the &quot;practice with computer&quot; mode is not choosing the best possible move, and e1=Q would have been stronger. In which case I wonder how to get a stronger practice mode...).</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-18T14:59:14.690Z
Comments.Text: There are 5 legal moves for black, not 2.
Comments.UserDisplayName: Herb
Tags: <engines><checkmate><stockfish>
Title: Why does Stockfish miss mate in 5 with only two legal moves?
ThreadText: # Why does Stockfish miss mate in 5 with only two legal moves?
  
  (Asked by: username_0 on 2022-05-18)
  
  I'm interested to understand what is going on for Stockfish on Lichess here. There are only two legal moves for Black, and it gives the position mate-in-14 for white.
  
  [![enter image description here](https://i.sstatic.net/vbGlh.png)](https://i.sstatic.net/vbGlh.png)
  
  When asked to play its recommended move (using Lichess "practice with computer"), it chooses Kb8 and gives the position mate-in-4 for white.
  
  [![enter image description here](https://i.sstatic.net/PNoh1.png)](https://i.sstatic.net/PNoh1.png)
  
  I'm very surprised that it couldn't see the mate in 4 from one half move further away, given only two moves for black to consider. And especially given that the move it chose as the best for black was on the path to the mate in 4.
  
  Are there any insights that would help understand its miscalculation?
  
  (Hmm, actually maybe what is going on is it's actually mate in 14, but the "practice with computer" mode is not choosing the best possible move, and e1=Q would have been stronger. In which case I wonder how to get a stronger practice mode...).
  
  **Tags:** engines, checkmate, stockfish
  
  > **Comments:**
  > **username_1**: There are 5 legal moves for black, not 2.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2022-05-18. Score: 4
  
  There is no mate in 4. Black's best move is 1...e1=Q, after which White goes 2. Bg2+ Kb8 3. a7+ Kc8 4. a8=Q+ with a decisive advantage, but no immediate checkmate. M14 is correct, White takes several moves after the promotion to mate.
  
  You might be seeing some issue with tablebases, since if Black's goal is to prevent the zeroing move as long as possible then 1...Kb8 is the best move.
  
  
  ---
  
  