Legal move filtering works by making each pseudo-legal move on the board, checking if the king is attacked, then unmaking the move. Castling gets special treatment: three squares must be checked (the king’s origin, transit square, and destination) since the king cannot castle out of, through, or into check:
["SRA (IX+o)", "DD CB o 2E"],
,更多细节参见新收录的资料
Copyright © 1997-2026 by www.people.com.cn all rights reserved,推荐阅读新收录的资料获取更多信息
Opens in a new window。新收录的资料对此有专业解读