Answers.Body: <blockquote>
  <p>What are the most common checks which occur in chess?</p>
  </blockquote>
  <p>Back rank checks (and check mates) must be the number one. I would suspect that bishop checks from h2/h7 on the castled king should also be up there in the top 10 if not number two.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-29T09:47:22.920Z
Answers.LastActivityDate: 2020-07-29T09:47:22.920Z
Answers.UserDisplayName: Brian Towers
Body: <p>I read somewhere that to optimize move generation for a chess engine it's good to have fast detection of position where one side is checked (to eliminate illegal moves).</p>
  <p>The author suggested that check detection could be improved slightly by having the code test for common checks which happen first. However, they didn't give anymore insight than that.</p>
  <p>I reasoned that my code for check detection should look for checks coming from the opponent's side of the board. Other than that though I couldn't think of anything else. This lead me to ask the following question:</p>
  <blockquote>
  <p><strong>What are the most common checks which occur in chess?</strong></p>
  </blockquote>
  <p>For example, are checks from queens more likely than checks from knights? Are certain diagonals more prone to checks than files?</p>
  <p><em>Advice for methods I could use to answer this question in the comments would also be appreciated</em></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-07-29T13:37:02.937Z
Comments.Text: Download a batch of PGNs that you think will be representative, write code that looks for "+" or "#", extract the move and the FEN before the move, store them as pair. Or if you do not care about the position, find a way to obtain the placement of the checking piece fore the check and store that as a move (for example "Bd3-h7")
Comments.UserDisplayName: B.Swan
Tags: <engines><software><check>
Title: What are the most common checks in chess?
ThreadText: # What are the most common checks in chess?
  
  (Asked by: username_0 on 2020-07-29)
  
  I read somewhere that to optimize move generation for a chess engine it's good to have fast detection of position where one side is checked (to eliminate illegal moves).
  
  The author suggested that check detection could be improved slightly by having the code test for common checks which happen first. However, they didn't give anymore insight than that.
  
  I reasoned that my code for check detection should look for checks coming from the opponent's side of the board. Other than that though I couldn't think of anything else. This lead me to ask the following question:
  
  > **What are the most common checks which occur in chess?**
  
  For example, are checks from queens more likely than checks from knights? Are certain diagonals more prone to checks than files?
  
  *Advice for methods I could use to answer this question in the comments would also be appreciated*
  
  **Tags:** engines, software, check
  
  > **Comments:**
  > **username_1**: Download a batch of PGNs that you think will be representative, write code that looks for "+" or "#", extract the move and the FEN before the move, store them as pair. Or if you do not care about the position, find a way to obtain the placement of the checking piece fore the check and store that as a move (for example "Bd3-h7")  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2020-07-29. Score: 2
  
  > What are the most common checks which occur in chess?
  
  Back rank checks (and check mates) must be the number one. I would suspect that bishop checks from h2/h7 on the castled king should also be up there in the top 10 if not number two.
  
  
  ---
  
  