Answers.Body: <p>I am going to accept DMs answer because it has so much good information on Chess rules, but to be clear my question was in regards to how does the MacBook Pro Chess game understand that you are trying to castle.</p>
  
  <p>On my Windows 7 machine, you move the King to h1 and that's how it knows you are castling.</p>
  
  <p>For future readers who run into similar problems where this does not work in their MacBook Pro Chess game, you need to move the King to g1 and at that point, your Macs Chess game understands you are castling and will move the Rook over to f1 for you.</p>
  
  <p>At no point was I in check, so yes if you are in check, no attempt at castling will work. For Macs Chess game you cannot move the King to h1 where the Rook is, you have to move it to g1 to the left of the Rook and the Chess game will understand its castling and thereby move your Rook over to f1.</p>
  
  <p>On Windows 7, the default behavior of the Chess game is you must move King over to h1 where the Rook is, it will understand it as castling and move the Rook over.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-26T13:35:38.413Z
Answers.Text: I think most programs require you to move the king to its destination square to castle. I'd heard that some crazy programs :-) have the convention that moving the king on top of the rook castles; I suppose the Windows chess program you've been using is one of them.
Answers.UserDisplayName: itub
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-26T15:45:12.447Z
Answers.Text: "On Windows 7 default behavior of its Chess game is you must move King over to 1H where the Rook it, it will understand it as castling and move the Rook over." It's h1, not 1H, and that is absolutely not true. You can move the king to g1 and it will recognize that you are castling.
Answers.UserDisplayName: Herb
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-27T01:28:03.700Z
Answers.Text: @HerbWolfe, thanks for telling me what I can and cannot do on an application I have been using for years.
Answers.UserDisplayName: Daniel
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-27T01:35:44.413Z
Answers.Text: @Daniel I have been using it for years as well. It will work by moving the king to g1.
Answers.UserDisplayName: Herb
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-09-16T16:08:16.750Z
Answers.Text: @Daniel, I would consider a program refusing to castle to Ke1-g1 to be a bug; after all, that's what you do in an over the board game! Moreover, in online chess there is no touch-move rule, so when I pick a piece and drag it with the mouse, I still can change my mind. If so, the easiest is to drop the piece upon the nearest piece of my own; this is never a legal move, so the effect is just that the piece returns to its original square. In this case, Kh1 leading to castling could be an unpleasant surprise.
Answers.UserDisplayName: Kostya_I
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-05T18:20:48.707Z
Answers.Text: This should be the accepted answer!! Thanks
Answers.UserDisplayName: melMass
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-26T13:30:30.720Z
Answers.LastActivityDate: 2019-04-27T08:32:54.577Z
Answers.LastEditDate: 2019-04-27T08:32:54.577Z
Answers.UserDisplayName: Daniel
Answers.Body: <p>According to the rules of castling, you cannot castle if:</p>
  
  <ul>
  <li>Your king has ever moved.</li>
  <li>The rook you are castling with has ever moved.</li>
  <li>Your king is currently in check.</li>
  <li>Your king would be in check at the destination square.</li>
  <li>Your king must cross through check.</li>
  </ul>
  
  <p>Most likely, one of these factors was the reason you couldn't castle.</p>
  
  <p>If none of these are the case, then perhaps dropping the king on the rook is the problem. The program might want you to drop the king on its destination square.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-26T12:15:43.430Z
Answers.Text: I was definitely not any of the bullet points you shared and last night when I tried, it eventually worked, I probably need to look up what the technique is for castling on that particular Chess game that MacBook comes with. Thank you for responding as it was educational.
Answers.UserDisplayName: Daniel
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-26T02:45:04.467Z
Answers.LastActivityDate: 2019-04-26T02:45:04.467Z
Answers.UserDisplayName: D M
Body: <p>I have gotten back to learning chess, and I started using the chess game program on my 2015 MacBook Pro. Last night I wanted to castle, but it would not allow me to do so. I was white by the way. Later on, I saw that black was allowed to castle.</p>
  
  <p>Is there some reason why the MacBook Pro Chess game program does not allow for castling? Or is there a rule about castling as white I am yet to learn?</p>
  
  <p>I moved my King over to the Rook - nothing. I then moved my Rook over to the King, again nothing. The pieces went back to their original place.</p>
  
Tags: <software><castling>
Title: Does the MacBook chess game program not allow castling?
ThreadText: # Does the MacBook chess game program not allow castling?
  
  (Asked by: username_0 on 2019-04-26)
  
  I have gotten back to learning chess, and I started using the chess game program on my 2015 MacBook Pro. Last night I wanted to castle, but it would not allow me to do so. I was white by the way. Later on, I saw that black was allowed to castle.
  
  Is there some reason why the MacBook Pro Chess game program does not allow for castling? Or is there a rule about castling as white I am yet to learn?
  
  I moved my King over to the Rook - nothing. I then moved my Rook over to the King, again nothing. The pieces went back to their original place.
  
  **Tags:** software, castling
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_5 on 2019-04-26. Score: 9 | Accepted answer
  
  According to the rules of castling, you cannot castle if:
  
  * Your king has ever moved.
  * The rook you are castling with has ever moved.
  * Your king is currently in check.
  * Your king would be in check at the destination square.
  * Your king must cross through check.
  
  Most likely, one of these factors was the reason you couldn't castle.
  
  If none of these are the case, then perhaps dropping the king on the rook is the problem. The program might want you to drop the king on its destination square.
  
  > **Comments:**
  > **username_0**: I was definitely not any of the bullet points you shared and last night when I tried, it eventually worked, I probably need to look up what the technique is for castling on that particular Chess game that MacBook comes with. Thank you for responding as it was educational.  
  
  ---
  
  ### Answer by username_0 on 2019-04-26. Score: 4
  
  I am going to accept DMs answer because it has so much good information on Chess rules, but to be clear my question was in regards to how does the MacBook Pro Chess game understand that you are trying to castle.
  
  On my Windows 7 machine, you move the King to h1 and that's how it knows you are castling.
  
  For future readers who run into similar problems where this does not work in their MacBook Pro Chess game, you need to move the King to g1 and at that point, your Macs Chess game understands you are castling and will move the Rook over to f1 for you.
  
  At no point was I in check, so yes if you are in check, no attempt at castling will work. For Macs Chess game you cannot move the King to h1 where the Rook is, you have to move it to g1 to the left of the Rook and the Chess game will understand its castling and thereby move your Rook over to f1.
  
  On Windows 7, the default behavior of the Chess game is you must move King over to h1 where the Rook is, it will understand it as castling and move the Rook over.
  
  > **Comments:**
  > **username_1**: I think most programs require you to move the king to its destination square to castle. I'd heard that some crazy programs :-) have the convention that moving the king on top of the rook castles; I suppose the Windows chess program you've been using is one of them.  
  > **username_2**: "On Windows 7 default behavior of its Chess game is you must move King over to 1H where the Rook it, it will understand it as castling and move the Rook over." It's h1, not 1H, and that is absolutely not true. You can move the king to g1 and it will recognize that you are castling.  
  > **username_0**: @HerbWolfe, thanks for telling me what I can and cannot do on an application I have been using for years.  
  > **username_2**: @username_0 I have been using it for years as well. It will work by moving the king to g1.  
  > **username_3**: @username_0, I would consider a program refusing to castle to Ke1-g1 to be a bug; after all, that's what you do in an over the board game! Moreover, in online chess there is no touch-move rule, so when I pick a piece and drag it with the mouse, I still can change my mind. If so, the easiest is to drop the piece upon the nearest piece of my own; this is never a legal move, so the effect is just that the piece returns to its original square. In this case, Kh1 leading to castling could be an unpleasant surprise.  
  > **username_4**: This should be the accepted answer!! Thanks  
  
  ---
  
  