chesskit-app / chesskit-swift

♟️ Swift package for implementing chess logic.
MIT License
7 stars 6 forks source link

King can castle out of check #11

Closed pdil closed 2 months ago

pdil commented 2 months ago

A condition needs to be added to Board.canCastle() to prevent castling moves when the king is in check.