Answers.Body: <p>No.  Kings cannot move into a position to be captured by another piece.
  Said differently, Kings <a href="https://chess.stackexchange.com/a/8320/26335">may not move into check</a>.</p>
  <p>See also the <a href="https://handbook.fide.com/chapter/E012018" rel="nofollow noreferrer">FIDE Laws of Chess</a> which clearly state:</p>
  <blockquote>
  <p>3.9.1   The king is said to be 'in check' if it is attacked by one or more of the opponent's pieces, even if such pieces are constrained
  from moving to the square occupied by the king because they would then
  leave or place their own king in check.</p>
  </blockquote>
  <blockquote>
  <p>3.9.2   No piece can be moved that will either expose the king of the same colour to check or leave that king in check.</p>
  </blockquote>
  <p>The Black King defends this pawn. Thus, the White King may not capture that pawn because the White King would be moving to a square where it would be attacked by the Black King (illegal according to Section 3.9.2).</p>
  <p>The OP contends that since a &quot;King cannot capture a King&quot; that the pawn capture is legal. This is simply not true. Section 3.9.2 does not allow the Kings to move within one square of each other. The fact that the Kings can't capture each other isn't relevant because such a move is illegal and results in an illegal position according to the Laws of Chess:</p>
  <blockquote>
  <p>3.10.2    A move is illegal when it fails to meet the relevant requirements of Articles 3.1 – 3.9</p>
  </blockquote>
  <blockquote>
  <p>3.10.3    A position is illegal when it cannot have been reached by any series of legal moves.</p>
  </blockquote>
  <p>The diagram below each King's legal moves in the position with the pawn (left) and without the pawn (right).</p>
  <p><a href="https://i.sstatic.net/qW2Lz.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/qW2Lz.png" alt="Diagram showing legal moves of both Kings." /></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-18T00:13:49.093Z
Answers.Text: Yes but the king cant capture a king so I can eat the piece
Answers.UserDisplayName: Raneem
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-18T00:18:31.930Z
Answers.Text: As I said I was in " check " by the anime rock And the anime rock was protected by the knight. For example: My king was in b6 the knight was in b5 and the anime king was behind the knight in b4 So I can just eat the knight with my king even if i'll face the anime king
Answers.UserDisplayName: Raneem
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-18T00:19:39.260Z
Answers.Text: Is the diagram complete and correct?
Answers.UserDisplayName: SecretAgentMan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-18T00:24:35.953Z
Answers.Text: I dont record where was the pices exactly but the example explains how the shape was
Answers.UserDisplayName: Raneem
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-18T00:26:51.937Z
Answers.Text: @Raneem I've edited my answer.  I believe the last paragraph of my answer explains the idea.  Does this help?
Answers.UserDisplayName: SecretAgentMan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-18T00:31:52.573Z
Answers.Text: Yes this helps a lot! But last question why it's not legal if the king cant capture a king?
Answers.UserDisplayName: Raneem
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-18T00:38:34.400Z
Answers.Text: You're amazing! Thank you
Answers.UserDisplayName: Raneem
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-18T00:41:01.807Z
Answers.Text: @Raneem does the latest edit explain it better?
Answers.UserDisplayName: SecretAgentMan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-18T00:10:45.600Z
Answers.LastActivityDate: 2022-08-18T12:23:28.057Z
Answers.LastEditDate: 2022-08-18T12:23:28.057Z
Answers.UserDisplayName: SecretAgentMan
Body: <p>Can I eat a piece in front of the enemy king with my king?</p>
  <p>For example: My king was on b6, the enemy knight was on b5, and the enemy king was behind the knight on b4.</p>
  <p>So can I capture the knight with my king, even if my king will then be in front of the enemy king?</p>
  <p>Why can't I eat the piece in front of the enemy king?</p>
  <pre><code>[FEN &quot;4k3/4p3/4K3/8/8/8/8/8 w - - 0 1&quot;]
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-08-18T00:21:12.113Z
Comments.Text: Is [this the position](https://lichess.org/analysis/1k6/1p6/1K6/8/8/8/8/8_w_-_-_0_1?color=white)?  Whose Knight is on b5 (White's or Black's)?  Same question for the b4-square. Whose Rook is on the board and where is it?
Comments.UserDisplayName: SecretAgentMan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-08-18T00:24:19.607Z
Comments.Text: Related: [Moving into check?](https://chess.stackexchange.com/q/15302/26335)
Comments.UserDisplayName: SecretAgentMan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-08-18T00:28:59.910Z
Comments.Text: What is an "anime rock" and an "anime king" and how are they different from a Rook and a King?
Comments.UserDisplayName: SecretAgentMan
Tags: <rules><check><kings><captures>
Title: Can a king capture a piece in front of the enemy king
ThreadText: # Can a king capture a piece in front of the enemy king
  
  (Asked by: username_0 on 2022-08-17)
  
  Can I eat a piece in front of the enemy king with my king?
  
  For example: My king was on b6, the enemy knight was on b5, and the enemy king was behind the knight on b4.
  
  So can I capture the knight with my king, even if my king will then be in front of the enemy king?
  
  Why can't I eat the piece in front of the enemy king?
  
  ```
  [FEN "4k3/4p3/4K3/8/8/8/8/8 w - - 0 1"]
  
  ```
  
  **Tags:** rules, check, kings, captures
  
  > **Comments:**
  > **username_1**: Is [this the position](https://lichess.org/analysis/1k6/1p6/1K6/8/8/8/8/8_w_-_-_0_1?color=white)?  Whose Knight is on b5 (White's or Black's)?  Same question for the b4-square. Whose Rook is on the board and where is it?  
  > **username_1**: Related: [Moving into check?](https://chess.stackexchange.com/q/15302/26335)  
  > **username_1**: What is an "anime rock" and an "anime king" and how are they different from a Rook and a King?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-08-18. Score: 4
  
  No. Kings cannot move into a position to be captured by another piece.
  Said differently, Kings [may not move into check](https://chess.stackexchange.com/a/8320/26335).
  
  See also the [FIDE Laws of Chess](https://handbook.fide.com/chapter/E012018) which clearly state:
  
  > 3.9.1 The king is said to be 'in check' if it is attacked by one or more of the opponent's pieces, even if such pieces are constrained
  > from moving to the square occupied by the king because they would then
  > leave or place their own king in check.
  
  > 3.9.2 No piece can be moved that will either expose the king of the same colour to check or leave that king in check.
  
  The Black King defends this pawn. Thus, the White King may not capture that pawn because the White King would be moving to a square where it would be attacked by the Black King (illegal according to Section 3.9.2).
  
  The OP contends that since a "King cannot capture a King" that the pawn capture is legal. This is simply not true. Section 3.9.2 does not allow the Kings to move within one square of each other. The fact that the Kings can't capture each other isn't relevant because such a move is illegal and results in an illegal position according to the Laws of Chess:
  
  > 3.10.2 A move is illegal when it fails to meet the relevant requirements of Articles 3.1 – 3.9
  
  > 3.10.3 A position is illegal when it cannot have been reached by any series of legal moves.
  
  The diagram below each King's legal moves in the position with the pawn (left) and without the pawn (right).
  
  [![Diagram showing legal moves of both Kings.](https://i.sstatic.net/qW2Lz.png)](https://i.sstatic.net/qW2Lz.png)
  
  > **Comments:**
  > **username_0**: Yes but the king cant capture a king so I can eat the piece  
  > **username_0**: As I said I was in " check " by the anime rock And the anime rock was protected by the knight. For example: My king was in b6 the knight was in b5 and the anime king was behind the knight in b4 So I can just eat the knight with my king even if i'll face the anime king  
  > **username_1**: Is the diagram complete and correct?  
  > **username_0**: I dont record where was the pices exactly but the example explains how the shape was  
  > **username_1**: @username_0 I've edited my answer.  I believe the last paragraph of my answer explains the idea.  Does this help?  
  > **username_0**: Yes this helps a lot! But last question why it's not legal if the king cant capture a king?  
  > **username_0**: You're amazing! Thank you  
  > **username_1**: @username_0 does the latest edit explain it better?  
  
  ---
  
  