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

Moves where the piece doesn't move #23

Open
alexobviously opened this issue Jan 13, 2023 · 3 comments
Open

Moves where the piece doesn't move #23

alexobviously opened this issue Jan 13, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@alexobviously
Copy link
Owner

It would be good to support a type of move where a piece can capture without moving itself. Currently this is definitely possible through implementing an action that 'teleports' the piece back to its original square after the move, and this might actually be enough. But it's worth investigating potential value in having this as part of the move definition. I think the decider for this will be whether there are variants with the sort of behaviour already in existence that would require it. Note that it's also possible through an action to only 'teleport' after certain moves.

@alexobviously alexobviously added the enhancement New feature or request label Jan 13, 2023
@alexobviously
Copy link
Owner Author

This is very possible now after the move refactor, but we don't have a sensible way to define this. One limited option is a flag on pieces that make their captures behave like this.

@alexobviously
Copy link
Owner Author

Betza notation thinks of this as a multileg move (such as the lion in that huge shogi variant) where the piece moves to capture and then moves back again, so pretty much like the action I suggested above, but I might want to optimise this into a specific move type, idk

@alexobviously
Copy link
Owner Author

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

1 participant