Why can I not en passant here?

Sort:
000waz


I'm playing the white pieces. It's move 22, why can't I take the black pawn via en passant by going to g7?

PGN:
1. e4
e6
2. c3
d5
3. d3
d4
4. ce2
c6
5. f4
e7
6. f3
e5
7. g3
g4
8. eg1
c5
9. e2
xf3
10. xf3
b5
11. b3
e7
12. e2
b4+
13. f1
c5
14. c1
c3
15. b1
f6
16. e2
O-O
17. xc3
dxc3
18. h4
d4
19. h5
fe8
20. h4
ac8
21. h6
g5

000waz

TCEC_Chess_TV - Twitch

So if my white pawn was on h5 and not h6, I could then have done en passant to g6.

Boyoyfg
Yes
Aks-ca
PGN:

1. e4 e6 | 2. Nc3 d5 | 3. d3 d4 | 4. Nce2 Nc6 | 5. Bf4 Qe7 | 6. Nf3 e5 | 7. Bg3 Bg4 | 8. Neg1 Qc5 | 9. Be2 Bxf3 | 10. Bxf3 Qb5 | 11. b3 Be7 | 12. Ne2 Bb4+ | 13. Kf1 Qc5 | 14. Nc1 Bc3 | 15. Rb1 Nf6 | 16. Ne2 O-O | 17. Nxc3 dxc3 | 18. h4 Nd4 | 19. h5 Rfe8 | 20. Rh4 Rac8 | 21. h6 g5 ||

Note: https://www.chess.com/forum/view/general/enpasssant-checkmate

Note 2: https://lichess.org/@/westvan007

OR

Chess Variant PGN:

1. h5-h7 .. h10-h9 2. Ne4-f6 .. g10-g8 3. g5-g6 .. g8-g7 4. Nf6-h5 .. Ne11-f9 5. Bf4-i7 .. Qg11-h10 6. Nj4-i6 .. h9-h8 7. Bi7-j6 .. Bf11-j7 8. Nh5-j4 .. Qh10-f8 9. Bi4-h5 .. Bj7xNi6 10. Bh5xBi6 .. Qf8-e8 11. e5-e6 .. Bi11-h10 12. Nj4-h5 .. Bh10-e7+ 13. Kh4-i4 .. Qe8-f8 14. Nh5-f4 .. Be7-f6 15. Rd4-e4 .. Nj11-i9 16. Nf4-h5 .. O-O 17. Nh5xBf6 .. g7xNf6 18. k5-k7 .. Nf9-g7 19. k7-k8 .. Ri11-h11 20. Rk4-k7 .. Rd11-f11 21. k8-k9 .. j10-j8 ||

Note 3: https://www.chess.com/computer-chess-championship