user10824: Why can't the black pawn take the queen at h6? Instead the computer makes the king go to g8.


user17: The pawn on g7 performs two vital functions:

It protects the pawn on f6 from capture by the White knight.
It indirectly bars the way to g8 to the White rook on g3.

If it captures the queen on h6 (thereby "moving"), it loses both these functions. Then:

Nxf6+  Kh8 
Rg8 mate.

For White, the checkmate would be well worth a queen, for Black, not.

user3270: 1... gxh6 2. Nxf6+ Kh8 3. Rg8#
[FEN "4rb2/pbqr2pk/1p3p1p/4p3/2P3NP/1P4R1/P5P1/2Q2B1K w - - 0 1"]

1. Qxh6+ gxh6 2. Nxf6+ Kh8 3. Rg8#


10824: <p>Why can't the black pawn take the queen at h6? Instead the computer makes the king go to g8.</p>

<p><a href="https://i.stack.imgur.com/24ykO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/24ykO.png" alt="enter image description here"></a></p>
 17: <p>The pawn on g7 performs two vital functions:</p>

<ol>
<li>It protects the pawn on f6 from capture by the White knight.</li>
<li>It indirectly bars the way to g8 to the White rook on g3.</li>
</ol>

<p>If it captures the queen on h6 (thereby "moving"), it loses both these functions. Then:</p>

<ol>
<li>Nxf6+  Kh8 <br></li>
<li>Rg8 mate.</li>
</ol>

<p>For White, the checkmate would be well worth a queen, for Black, not.</p>
 3270: <p>1... gxh6 2. Nxf6+ Kh8 3. Rg8#</p>

<pre><code>[FEN "4rb2/pbqr2pk/1p3p1p/4p3/2P3NP/1P4R1/P5P1/2Q2B1K w - - 0 1"]

1. Qxh6+ gxh6 2. Nxf6+ Kh8 3. Rg8#
</code></pre>
