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

Lame leaper that has to be blocked on more than 1 square? #642

Open
Yowwowwow opened this issue Apr 13, 2023 · 0 comments
Open

Lame leaper that has to be blocked on more than 1 square? #642

Yowwowwow opened this issue Apr 13, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Yowwowwow
Copy link

I wanna implement a piece but am not sure how to. This piece moves like a king, but when moving diagonally, it can be blocked from a square if it cannot reach that square in 2 wazir moves (1st wazir move can't be a capture). For example, it cannot move to its top-right square if its right square and top square are both occupied.
How can I implement this piece? More generally, can I implement a lame leaper that has to be blocked on more than 1 square? E.g. a knight that can move from (0, 0) to (1, 2) only if at least 1 square of (0, 1) and (1, 1) is empty.

@ianfab ianfab added the enhancement New feature or request label Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants