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

Issue with castling #14

Open
NukaWorld9631 opened this issue Feb 5, 2024 · 2 comments
Open

Issue with castling #14

NukaWorld9631 opened this issue Feb 5, 2024 · 2 comments

Comments

@NukaWorld9631
Copy link

Hello, I enjoy the chessboard very much but small issue with the board logic. When castling would be illegal because a bishop line of sight would prevent castling, the board still let you castle.

If you plan future updates, here is a few suggestions:
1.Have a replay mode to rewatch the last played game.
2.An export feature where you can copy(clipboard) the notation of the game at the end of a match would be awesome.

Keep up the good work!

Nuka

@emymin
Copy link
Owner

emymin commented Feb 5, 2024

Hello! Sadly that issue with castling that you mention is a known issue, in general I haven't fully validated the legal move generation code so I suspect there might be other similar issues.

I plan to tackle that (as well as the suggestions you mentioned!) in some upcoming updates!

@CompuGenius-Programs
Copy link

In addition to being able to castle through check, you can also castle OUT of check, which led to the funny but annoying situation where I was forced to checkmate someone twice in one game 🤣
I can look into creating a PR.

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

3 participants