fairy-stockfish / Fairy-Stockfish

chess variant engine supporting Xiangqi, Shogi, Janggi, Makruk, S-Chess, Crazyhouse, Bughouse, and many more
https://fairy-stockfish.github.io/
GNU General Public License v3.0
612 stars 191 forks source link

Addition of Iron/uncapturable pieces #606

Open ianfab opened 1 year ago

ianfab commented 1 year ago

Discussed in https://github.com/fairy-stockfish/Fairy-Stockfish/discussions/604

Originally posted by **ArsenalAlex108** March 25, 2023 This feature can partially be used by setting extinctionValue = win, though capturing the supposed "iron" piece is still a legal: [ExampleBoard] king = k knight = n bishop = b rook = r queen = q pawn = p doubleStep = false customPiece2 = s:mK maxFile = 5 maxRank = 6 promotionPieceTypes = q promotedPieceType = n:q b:q r:q promotionRank = 6 mandatoryPiecePromotion = true extinctionValue = win extinctionPieceTypes = s startFen = qkbnr/ppspp/5/5/PPSPP/QKBNR I was wondering if it is possible to separate iron pieces into a feature separated from extinction pieces, so that both iron pieces and extinction pieces can exist on the same board?
PraseodymiumSpike commented 1 year ago

Dynamically iron pieces like the lion from chu shogi would be nice as well even if chu shogi itself won't be supported for the forseeable future.