user1687: My computer checkmated me with a pawn move.
I could have taken that pawn en passant but I wasn't given a chance to do that.
Was that a fault of my computer, or is there a rule stating that a pawn giving checkmate cannot be taken en passant?

user8860: Maybe your pawn happened to be pinned?
 8/8/7r/5K1k/7p/8/6P1/7R w - - 0 1

 1. g4+# hxg3?? 2. Rxh5


user1656: I would love to see the position; please add it to your question somehow (we can always edit it to look nice). However, there is no such rule. Either your computer doesn't implement captures en passant (improbable these days) or the capture was not valid for some other reason.

1687: <p>My computer checkmated me with a pawn move.</p>

<p>I could have taken that pawn en passant but I wasn't given a chance to do that.</p>

<p>Was that a fault of my computer, or is there a rule stating that a pawn giving checkmate cannot be taken en passant?</p>
 8860: <p>Maybe your pawn happened to be pinned?</p>

<pre><code> 8/8/7r/5K1k/7p/8/6P1/7R w - - 0 1

 1. g4+# hxg3?? 2. Rxh5
</code></pre>
 1656: <p>I would love to see the position; please add it to your question somehow (we can always edit it to look nice). However, there is no such rule. Either your computer doesn't implement captures en passant (improbable these days) or the capture was not valid for some other reason.</p>
