bishop icon indicating copy to clipboard operation
bishop copied to clipboard

Moves where the piece doesn't move

Open alexobviously opened this issue 2 years ago • 3 comments

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 avatar Jan 13 '23 14:01 alexobviously

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 avatar Feb 07 '23 12:02 alexobviously

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 avatar Feb 14 '23 13:02 alexobviously

https://www.chessvariants.com/difftaking.dir/rifle.html

alexobviously avatar Aug 05 '23 15:08 alexobviously