user31825: I decided to play a game against a real player in chess.com app. I played black.
At some point of the game I had a pawn on f5 and white had a pawn on e5. White captured my f5 pawn with the e5 pawn by moving the e5 pawn to f6!.
Is that a bug or a feature? I played for a while with bots and can’t remember they made such tricky moves.
[fen "rnbqkb1r/p3pppp/2p5/1p2P3/3PpP2/8/PPP1Q1PP/R1B1KBNR b - - 0 1"]

1...f5 2. exf6


user4418: This is a legal capture using the "en passant" rule. According to the FIDE Laws of Chess:

3.7.4.1  A pawn occupying a square on the same rank as and on an adjacent file to an opponent’s pawn which has just advanced two squares in one move from its original square may capture this opponent’s pawn as though the latter had been moved only one square.


31825: <p>I decided to play a game against a real player in chess.com app. I played black.</p>
<p>At some point of the game I had a pawn on f5 and white had a pawn on e5. White captured my f5 pawn with the e5 pawn by moving the e5 pawn to f6!.</p>
<p>Is that a bug or a feature? I played for a while with bots and can’t remember they made such tricky moves.</p>
<pre><code>[fen &quot;rnbqkb1r/p3pppp/2p5/1p2P3/3PpP2/8/PPP1Q1PP/R1B1KBNR b - - 0 1&quot;]

1...f5 2. exf6
</code></pre>
 4418: <p>This is a legal capture using the &quot;en passant&quot; rule. According to the <a href="https://handbook.fide.com/chapter/E012018" rel="noreferrer">FIDE Laws of Chess</a>:</p>
<blockquote>
<p>3.7.4.1  A pawn occupying a square on the same rank as and on an adjacent file to an opponent’s pawn which has just advanced two squares in one move from its original square may capture this opponent’s pawn as though the latter had been moved only one square.</p>
</blockquote>
