Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows castling when king is in check #20

Open
dipamsen opened this issue Dec 10, 2024 · 1 comment
Open

Allows castling when king is in check #20

dipamsen opened this issue Dec 10, 2024 · 1 comment

Comments

@dipamsen
Copy link
Contributor

Describe the bug
The game allows playing castling moves even when the king is under check.

To Reproduce
Steps to reproduce the behavior:

  1. Reach any position where the king is checked, and all other conditions for castling are fulfilled. On clicking the king, the castling move is suggested and also it is playable.
    image

Expected behavior
Castling should not be allowed when the king is in check.

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome
  • Version: 131.0.6778.109
@gauravnetes
Copy link

I've worked on this issue and already created a Pull Request. Hope you'll check it out.
PR Link: #27 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants