Hello there is a mistake in your programme. My queen attacked B1 field, but my oppennent castled through B1. It is a forbidden move in chess.
castling
Posted in
Chess
John Stewart
Rapid Chess Hello Surmó, I recreated such a position in the unrated room and can confirm what you are saying. Even though B1 was under attack, I was able to castle. Screenshot:
https://rb.gy/wcazxf
Kind regards, John
Edited by John Stewart
There are conditions when you cannot pursue castling. - Castling is only possible if neither the king nor the rook has moved. -If either the king or the rook on the side you’re castling on has moved, you cannot castle, even if the king or rook moves back into its original position. If you move a rook on one side, you can castle on the other side as long as you meet all the other requirements. -There must not be any pieces between the king and the rook. -The king may not be in check. -The square the king goes to and any intervening squares may not be under attack. Concerning the screenshot, it is a legal move- there is nothing to prevent castling if the rook is under attack.
John Stewart
Hello Cɑɲdy Cɑɲɘ, Thank you very much for your reply. We were able to castle. Even though this should not have been possible because a field between the king and the rook were under attack. (in this case B1) Please see screenshot.
https://rb.gy/wcazxf
Respectfully, John Stewart
Based on the screenshot, this is a legal move. Why? you can castle with a rook that is under attack at the time, and the rook can pass through an attacked square when castling while the king cannot.