Closed alexobviously closed 1 year ago
Implemented in 0.6.1
as BoardRegion
and RegionEffect
.
Maybe it could be used for add pawns in crazyhouse ?
Maybe it could be used for add pawns in crazyhouse ?
Could do I suppose, but I think "promotable piece can't be placed on promotion ranks" is specific enough.
Support for restricting certain piece types to specific areas of the board, for example generals, advisors and elephants in Xiangqi all have their movement restricted to certain areas of the board.
We probably want some
MobilityRegion
class that takes upper and lower rank and file limits, and maybe just check them inaddMove
for simplicity.