Answers.Body: <p>The answer is plain and simple: You <strong>cannot</strong> castle twice without breaking the rules. The only chance for this thing to happen is that the illegal move (the second castling) stays unnoticed until the game is ended with an accepted outcome.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-06T11:20:58.517Z
Answers.Text: So you mean in Heidenfeld - Kerins, Dublin 1973 game, Heidenfeld castled twice illegally ?
Answers.UserDisplayName: Sebastien FERRAND
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-06T11:30:50.983Z
Answers.Text: @Sebastien FERRAND Yes, of course. The necessary condition that the King MUST NOT have moved before castling is obviously violated in the second casltling.
Answers.UserDisplayName: Sir Cornflakes
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-06T11:34:59.270Z
Answers.Text: That good old sneaky Heidenfeld
Answers.UserDisplayName: Sebastien FERRAND
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-06T11:19:10.313Z
Answers.LastActivityDate: 2015-11-06T11:19:10.313Z
Answers.UserDisplayName: Sir Cornflakes
Body: <p>A simple question: Assuming that I'm playing as White, how can I castle twice in a game?</p>
  
  <p>I've asked myself this question after seeing the following game from Tim Krabbe's chess records <a href="https://timkr.home.xs4all.nl/records/recordstxt.htm#greatest%20number%20of%20castlings" rel="nofollow noreferrer">"<strong>Greatest number of castlings</strong>"</a>, in which White castles twice.</p>
  
  <pre><code>[Title "Heidenfeld - Kerins, Dublin 1973"]
  [FEN ""]
  
  1. e4 e6 2. d4 d5 3. Be3 Nf6 4. e5 Nfd7 5. f4 c5 6. c3 Nc6 7. Nf3 Qb6 8. Qd2 c4 9. Be2 Na5 10. O-O f5 11. Ng5 Be7 12. g4 Bxg5 13. fxg5 Nf8 14. gxf5 exf5 15. Bf3 Be6 16. Qg2 O-O-O 17. Na3 Ng6 18. Qd2 f4 19. Bf2 Bh3 20. Rfb1 Bf5 21. Nc2 h6 22. gxh6 Rxh6 23. Nb4 Qe6 24. Qe2 Ne7 25. b3 Qg6+ 26. Kf1 Bxb1 27. bxc4 dxc4 28. Qb2 Bd3+ 29. Ke1 Be4 30. Qe2 Bxf3 31. Qxf3 Rxh2 32. d5 Qf5 33.O-O-O Rh3 34.Qe2 Rxc3+ 35.Kb2 Rh3 36.d6 Nec6 37.Nxc6 Nxc6 38.e6 Qe5+ 39.Qxe5 Nxe5 40.d7+ Nxd7 0-1 
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-11-06T16:54:07.080Z
Comments.Text: The second castling is indeed illegal, the player wanted to *minimize his losing position*. https://www.reddit.com/r/chess/comments/2wr5c3/til_there_was_a_chess_game_in_1973_with_3/cotfhce
Comments.UserDisplayName: m4n0
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-11-06T18:12:03.197Z
Comments.Text: You can always castle twice, to the same side, in parallel, on the same move.
Comments.UserDisplayName: Michael
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-08-02T01:45:18.580Z
Comments.Text: 1) you or your opponent makes an illegal move.
  2) you castle.
  3) you or your opponent notice the illegal move soon enough to reset the position.
  4) you may now castle again. :-)
Comments.UserDisplayName: Noam D. Elkies
Tags: <rules><castling>
Title: How to castle two times in a game
ThreadText: # How to castle two times in a game
  
  (Asked by: username_0 on 2015-11-06)
  
  A simple question: Assuming that I'm playing as White, how can I castle twice in a game?
  I've asked myself this question after seeing the following game from Tim Krabbe's chess records "Greatest number of castlings", in which White castles twice.
  [Title "Heidenfeld - Kerins, Dublin 1973"]
  [FEN ""]
  
  1. e4 e6 2. d4 d5 3. Be3 Nf6 4. e5 Nfd7 5. f4 c5 6. c3 Nc6 7. Nf3 Qb6 8. Qd2 c4 9. Be2 Na5 10. O-O f5 11. Ng5 Be7 12. g4 Bxg5 13. fxg5 Nf8 14. gxf5 exf5 15. Bf3 Be6 16. Qg2 O-O-O 17. Na3 Ng6 18. Qd2 f4 19. Bf2 Bh3 20. Rfb1 Bf5 21. Nc2 h6 22. gxh6 Rxh6 23. Nb4 Qe6 24. Qe2 Ne7 25. b3 Qg6+ 26. Kf1 Bxb1 27. bxc4 dxc4 28. Qb2 Bd3+ 29. Ke1 Be4 30. Qe2 Bxf3 31. Qxf3 Rxh2 32. d5 Qf5 33.O-O-O Rh3 34.Qe2 Rxc3+ 35.Kb2 Rh3 36.d6 Nec6 37.Nxc6 Nxc6 38.e6 Qe5+ 39.Qxe5 Nxe5 40.d7+ Nxd7 0-1
  
  **Tags:** rules, castling
  
  > **Comments:**
  > **username_1**: The second castling is indeed illegal, the player wanted to *minimize his losing position*. https://www.reddit.com/r/chess/comments/2wr5c3/til_there_was_a_chess_game_in_1973_with_3/cotfhce  
  > **username_2**: You can always castle twice, to the same side, in parallel, on the same move.  
  > **username_3**: 1) you or your opponent makes an illegal move. 2) you castle. 3) you or your opponent notice the illegal move soon enough to reset the position. 4) you may now castle again. :-)  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_4 on 2015-11-06. Score: 20 | Accepted answer
  
  The answer is plain and simple: You **cannot** castle twice without breaking the rules. The only chance for this thing to happen is that the illegal move (the second castling) stays unnoticed until the game is ended with an accepted outcome.
  
  > **Comments:**
  > **username_0**: So you mean in Heidenfeld - Kerins, Dublin 1973 game, Heidenfeld castled twice illegally ?  
  > **username_4**: @username_0 Yes, of course. The necessary condition that the King MUST NOT have moved before castling is obviously violated in the second casltling.  
  > **username_0**: That good old sneaky Heidenfeld  
  
  ---
  
  