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

Determine whether or not a piece can move along a line of attack #724

Open
programarivm opened this issue Jan 21, 2025 · 0 comments
Open

Comments

@programarivm
Copy link
Member

programarivm commented Jan 21, 2025

At the moment the isLineOfAttackSafe() method is making a virtual move to determine whether or not a piece can move along a line of attack. However, it can be refactored in terms of lines of attack and defense among pieces without making the virtual move.

See:

Examples:

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

No branches or pull requests

1 participant