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

How to add a knightrider? #8

Open
Colonizor48 opened this issue Nov 24, 2021 · 2 comments
Open

How to add a knightrider? #8

Colonizor48 opened this issue Nov 24, 2021 · 2 comments

Comments

@Colonizor48
Copy link

This piece https://en.wikipedia.org/wiki/Nightrider_(chess)

@Jollonk
Copy link

Jollonk commented Nov 24, 2021

You need to use delta-based slide moves, and give every new direction a new group.
It should look something like this:
Nightrider
Each direction should have a different group number, and each step within the direction should be increasing.
Do this with both translate and attack delta-based slides and you should have a Nightrider.
You should also make the 'arms' of the directions as long as is needed for your board. That should be 1+x steps for a board the size of 3+2x.

I hope that helps :)

@Colonizor48
Copy link
Author

Thank you! While im here may i suggest a piece type that can capture without moving? For example a piece that could capture like a rook but could only move like a king.

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